-
-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot search label text when label is built using a template #167
Comments
Hi, by default items are filtered using Other than that, we will consider implementing one of these features:
|
Hi @varnastadeus, Thanks for the info, I'll look at the typeahead technique. Of the options you have listed, I think Thanks again Simon |
Adding note: could be implemented adding array of searchable keys eg.: |
Hi
Thanks for a great library! I've run into an issue when trying to filter a select field that has had its options and labels created using templates. This is detailed below.
Expected behaviour
The input field looks as follows
An example might look like this
sgmccli / test
When I search I expect to be able to type
sgmccli
ortest
and filter the results accordingly.Actual behaviour
The actual behaviour is that no values are returned at all. Having stepped through the filter code, it appears that if BindLabel is not set, the default property name of
'label'
is being used. This property does not exist on my object and so no results are filtered.If templates are being used for labels, we should be searching against the template text contents and not a single field on the underlying item.
More Info
ng-select version: 0.12.0
browser: Chrome 64
reproducible in demo page: [YES/NO]
The text was updated successfully, but these errors were encountered: