2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-01 05:54:03 +03:00

Prevent submitting inside form

Forms submit when pressing enter (`keydown`), not when releasing (`keyup`).
This commit is contained in:
Eric
2017-07-05 23:22:06 +02:00
committed by GitHub
parent 7a2fad6933
commit 59b3b2fe01
+1 -1
View File
@@ -283,7 +283,7 @@
@keyup.esc="onEscape"
@keydown.up.prevent="typeAheadUp"
@keydown.down.prevent="typeAheadDown"
@keyup.enter.prevent="typeAheadSelect"
@keydown.enter.prevent="typeAheadSelect"
@blur="onSearchBlur"
@focus="onSearchFocus"
type="search"