Explorar el Código

stop autocomplete enter event bubbling

baiyaaaaa hace 8 años
padre
commit
fa5aa2b183
Se han modificado 1 ficheros con 1 adiciones y 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>