Fix Typehead up/down keys.
authorAlexandre Segura <mex.zktk@gmail.com>
Wed, 22 Feb 2017 16:28:03 +0100
changeset 344 15927a4f5c19
parent 343 6f901f3b1510
child 345 4bf0f6ff748d
Fix Typehead up/down keys.
src_js/iconolab-bundle/src/components/tagform/Typeahead.vue
--- a/src_js/iconolab-bundle/src/components/tagform/Typeahead.vue	Wed Feb 22 16:27:08 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/tagform/Typeahead.vue	Wed Feb 22 16:28:03 2017 +0100
@@ -6,12 +6,12 @@
             v-bind:placeholder="placeholder"
             autocomplete="off"
             v-model="query"
-            v-on:keyup.8="checkQuery"
             @keydown.down="down"
             @keydown.up="up"
             @keydown.enter="hit($event)"
             @keydown.esc="reset"
-            @keyup="update" />
+            @blur="reset"
+            @input="update" />
         <ul v-show="hasItems">
             <li v-for="(item, index) in items" :class="activeClass(index)" @mousedown="hit" @mousemove="setActive(index)">
                 <span v-text="item.tag_label"></span>