fix(select): don't allow to clear the selected option when disabled
close #3924
This commit is contained in:
parent
83cc2fd235
commit
9050e61c29
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@
|
|||
},
|
||||
canBeCleared(){
|
||||
const uiStateMatch = this.hasMouseHoverHead || this.active;
|
||||
const qualifiesForClear = !this.multiple && this.clearable;
|
||||
const qualifiesForClear = !this.multiple && !this.disabled && this.clearable;
|
||||
return uiStateMatch && qualifiesForClear && this.reset; // we return a function
|
||||
},
|
||||
selectOptions() {
|
||||
|
|
Loading…
Add table
Reference in a new issue