v-autocomplete
v-autocomplete copied to clipboard
Prevent form submit on enter key press
How I can put this change on my project? because the owner don't push to master this commit yet.
It would be awesome if this could get merged, not being able to select the suggestion within a form element degrades a lot the experience.
FYI, you can also capture the enter on a parent element to prevent it submitting form. Like so:
<div @keydown.enter.prevent>
<v-autocomplete ref="autocomplete" v-model="searchSelected" />
</div>
We don't supply a function here to the handler, since we don't want it do do anything extra.
This project hasn't seen any activity in years, so I wouldn't count on it to be merged anytime soon.