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
|
clearSingleSelect(){ // PUBLIC API
|
||||||
this.$emit('on-clear');
|
this.$emit('on-clear');
|
||||||
this.hideMenu();
|
this.hideMenu();
|
||||||
if (this.clearable) this.values = [];
|
if (this.clearable) this.reset();
|
||||||
},
|
},
|
||||||
getOptionData(value){
|
getOptionData(value){
|
||||||
const option = this.flatOptions.find(({componentOptions}) => componentOptions.propsData.value === value);
|
const option = this.flatOptions.find(({componentOptions}) => componentOptions.propsData.value === value);
|
||||||
|
@ -507,6 +507,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
reset(){
|
reset(){
|
||||||
|
this.query = '';
|
||||||
|
this.focusIndex = -1;
|
||||||
this.unchangedQuery = true;
|
this.unchangedQuery = true;
|
||||||
this.values = [];
|
this.values = [];
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue