You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using autocomplete-vue and want to add a "Search" <button>, like on the google page, to trigger the keyboard selected result (or the first if no one is selected):
but I can't find a way to trigger the @submit event from a button!
✔️First case: Click on the third result takes the result as input and triggers the autocomplete's @submit function (expected behaviour)
❓ Second case: Select the third result with keyboard and click on the Search button only triggers the handleFormSubmit function, and has no effect on the autocomplete (unexpected behaviour)
Desired behaviour:
First case: nothing to change!
Second case: When I press the Search button, I want to trigger the autocomplete @submit function (not the form submit).
(if no result is selected with keyboard, it takes the first result by default)
Hello @trevoreyre, and thanks for your plugin!
I'm using
autocomplete-vue
and want to add a "Search"<button>
, like on the google page, to trigger the keyboard selected result (or the first if no one is selected):but I can't find a way to trigger the
@submit
event from a button!Precision: the behaviour of this codepen is not what i'm looking for: https://codepen.io/trevoreyre/pen/RwwNKLK?editors=1111
Thanks for your help!
The text was updated successfully, but these errors were encountered: