Explorar o código

stop autocomplete enter event bubbling

baiyaaaaa %!s(int64=8) %!d(string=hai) anos
pai
achega
fa5aa2b183
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/autocomplete/src/autocomplete.vue

+ 1 - 1
packages/autocomplete/src/autocomplete.vue

@@ -10,7 +10,7 @@
       @focus="handleFocus"
       @keydown.up.native="highlight(highlightedIndex - 1)"
       @keydown.down.native="highlight(highlightedIndex + 1)"
-      @keydown.enter.native="select(highlightedIndex)"
+      @keydown.enter.stop.native="select(highlightedIndex)"
     >
       <template slot="prepend" v-if="$slots.prepend">
         <slot name="prepend"></slot>