Skip to content

Commit 59b3b2f

Browse files
author
Eric
authored
Prevent submitting inside form
Forms submit when pressing enter (`keydown`), not when releasing (`keyup`).
1 parent 7a2fad6 commit 59b3b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
@keyup.esc="onEscape"
284284
@keydown.up.prevent="typeAheadUp"
285285
@keydown.down.prevent="typeAheadDown"
286-
@keyup.enter.prevent="typeAheadSelect"
286+
@keydown.enter.prevent="typeAheadSelect"
287287
@blur="onSearchBlur"
288288
@focus="onSearchFocus"
289289
type="search"

0 commit comments

Comments
 (0)