ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

Select typeahead dropdown item only if search string matches with the dropdown list item

Open ambar0709 opened this issue 5 years ago • 1 comments

image

Here you can see i am searching for the 'tag 1' and list in is alphabetical order so 'tag 1' is in 2nd place. so now if i want to select 2nd item in the list i will have to use arrow keys.. which is not a good user experience.

There must be 2 directives to select items only if whole list item string matches with the searched string 1st for case sensitive. 2nd for ignoring case.

ambar0709 avatar Jul 31 '20 06:07 ambar0709

I'm having the same issue but I think it would be best not to hide the "new tag 1" result (in your example), like you're suggesting, but to change the order of the results to be by relation to the input first and then alphabetical. Something like this https://github.com/farzher/fuzzysort

ferares avatar Feb 01 '22 00:02 ferares