Эх сурвалжийг харах

stop autocomplete enter event bubbling

baiyaaaaa 8 жил өмнө
parent
commit
fa5aa2b183

+ 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>