v-autocomplete icon indicating copy to clipboard operation
v-autocomplete copied to clipboard

Prevent form submit on enter key press

Open gorbunovav opened this issue 6 years ago • 3 comments

gorbunovav avatar Mar 27 '18 21:03 gorbunovav

How I can put this change on my project? because the owner don't push to master this commit yet.

maganius avatar Apr 21 '18 19:04 maganius

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.

LeBenLeBen avatar Sep 01 '18 13:09 LeBenLeBen

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.

mokkabonna avatar Nov 16 '21 10:11 mokkabonna