oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

On text paste the search doesn't get triggered #265

Closed dBourgiotis closed 7 years ago

dBourgiotis commented 7 years ago

On text paste the search doesn't get triggered, despite having minSearchLength = 2 and the total amount of characters are >2. If I press an extra space it works, but it would save a lot of time if it was instant.

oferh commented 7 years ago

can you provide a scenario, just tried in the demo Remote data part and it seems to work.

dBourgiotis commented 7 years ago

I ve also tried in the demo and I also had to type space in order for the dropdown to appear. I use chrome on Mac Os if It makes any difference.

oferh commented 7 years ago

The scenario that I could reproduce is:

  1. copy a string from a different place
  2. paste the string to the completer item
dBourgiotis commented 7 years ago

Yes exactly that. And then you have to type another character in order for the dropdown list to appear.