Be more hard on the reset
This commit is contained in:
parent
cbff5e3641
commit
743f6e0639
1 changed files with 3 additions and 1 deletions
|
@ -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 = [];
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue