Make sure an item is selected.
authorAlexandre Segura <mex.zktk@gmail.com>
Mon, 27 Feb 2017 18:19:32 +0100
changeset 397 b936a1aab4dc
parent 396 0a4743126d74
child 398 380450f0ca00
Make sure an item is selected.
src_js/iconolab-bundle/src/components/tagform/Typeahead.vue
--- a/src_js/iconolab-bundle/src/components/tagform/Typeahead.vue	Mon Feb 27 17:50:14 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/tagform/Typeahead.vue	Mon Feb 27 18:19:32 2017 +0100
@@ -160,6 +160,7 @@
             },
 
             onHit (selected) {
+                if (!selected) { return; }
                 this.$emit('selected', selected);
                 this.reset();
             }