ng2-ui / auto-complete

Angular Auto Complete component and directive
https://ng2-ui.github.io/dist/#/auto-complete
MIT License
279 stars 123 forks source link

Auto complete - shows wrong values #233

Closed KRav007 closed 6 years ago

KRav007 commented 7 years ago
bildschirmfoto 2017-07-10 um 23 01 57

What kind of logic is used, to "filter" the list, if you insert values into the autocomplete?

Current behavior See the screenshot, I fill in "aaaa" and the list contains "DUD1". Why is "DUD1" shown? There is no "a" in this value?

allenhwkim commented 7 years ago

The default logic is JSON.stringify(element).indexof('aaa')> 0 If you don't like this logic, you can make your own Observable source to filter out.

If you need further assist, please create a plunker example to reproduce this issue.