Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 109 forks source link

Clicking around the input and changing cursor position does not change autocomplete filter #44

Open mizzao opened 10 years ago

mizzao commented 10 years ago

Changing the cursor via mouse does not update the autocomplete menu (due to this being handled in the onKeyUp) function of the AutoComplete class. The only other place this logic is also triggered is in onFocus.

We can simply add an onClick handler to tackle the basic case of this, but it requires more thought to decide what to do for drags and selected regions. Maybe the autocomplete should just go away during that time.