darrenjennings / vue-autosuggest

🔍 Vue autosuggest component.
https://darrenjennings.github.io/vue-autosuggest
MIT License
621 stars 91 forks source link

How to prevent arrows keydown event opening suggest? #209

Closed usernamehw closed 3 years ago

usernamehw commented 3 years ago

Problem description:

I need to use keydown event for ArrowDown/ArrowUp and the input is opening the suggestion list when it's not visible.

Only want to use the event when suggestions are not visible. Right now it opens the autocomplete by pressing ArrowDown and there seems to be no way of preventing it.

darrenjennings commented 3 years ago

@usernamehw can you add a reproduction codesandbox?

usernamehw commented 3 years ago

Wrote workarounds with the shouldRenderSuggestions. And with the number of workarounds in place it would take too much time to write a minimal sample.