From 743f6e0639f67f1c5d61234ee76e311a3dd159e9 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Tue, 29 May 2018 12:40:21 +0200 Subject: [PATCH] Be more hard on the reset --- src/components/select/select.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index ea1f5d1..f668b42 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -411,7 +411,7 @@ clearSingleSelect(){ // PUBLIC API this.$emit('on-clear'); this.hideMenu(); - if (this.clearable) this.values = []; + if (this.clearable) this.reset(); }, getOptionData(value){ const option = this.flatOptions.find(({componentOptions}) => componentOptions.propsData.value === value); @@ -507,6 +507,8 @@ } }, reset(){ + this.query = ''; + this.focusIndex = -1; this.unchangedQuery = true; this.values = []; }, -- libgit2 0.21.4