Browse Source

Autocomplete: hide suggestions on blur

Leopoldthecoder 8 years ago
parent
commit
09e02e703d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/autocomplete/src/autocomplete.vue

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

@@ -17,6 +17,7 @@
       @keydown.up.native.prevent="highlight(highlightedIndex - 1)"
       @keydown.down.native.prevent="highlight(highlightedIndex + 1)"
       @keydown.enter.native.prevent="handleKeyEnter"
+      @keydown.native.tab="close"
     >
       <template slot="prepend" v-if="$slots.prepend">
         <slot name="prepend"></slot>