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

Copy pasting values into auto-complete field doesn't work #298

Closed malchijah closed 6 years ago

malchijah commented 6 years ago

Copy pasting values into auto-complete field doesn't show the auto-complete list of values. Instead 'no records found' text is displayed even though values exist. If after pasting, you press 'backspace' or any key, the autocomplete list works. But right after you paste you only see 'no records found' text unless you trigger the keyboard event by hitting spacebar or any other key.

malchijah commented 6 years ago

Able to reproduce it here. Try pasting 'Asia 1'. http://plnkr.co/edit/F9nrWp?p=preview

almothafar commented 6 years ago

The name is Asia not Asia 1 the formatter adding id to what you see <span style='color:red'>${data.name} ${data.id} </span> so this is why it is showing Asia 1

Do you mean you want to search cross the object?