ngx-bootstrap
ngx-bootstrap copied to clipboard
Select typeahead dropdown item only if search string matches with the dropdown list item

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.
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