diff --git a/resources/vue/components/Quicksearch.vue b/resources/vue/components/Quicksearch.vue index 0f37ae0d6ab796febe203deeb1186d7d691e91b9..575b464b3305d6b44dd9cab4f143ea7aa1b6d5fb 100644 --- a/resources/vue/components/Quicksearch.vue +++ b/resources/vue/components/Quicksearch.vue @@ -119,7 +119,6 @@ export default { this.results = []; this.$emit('input', this.returnValue, this.inputValue); - this.inputValue = ''; }, selectUp () { if (this.selected > 0) { @@ -177,6 +176,9 @@ export default { if (oldneedle !== null && (oldneedle !== needle) && needle.length > 2) { this.search(needle); } + if (this.autocomplete) { + this.$emit('input', this.inputValue, this.inputValue); + } } } }