Merge pull request #3925 from losadaem/select-with-disable-clearable
select: don't allow to clear the selected option when disabled (fix #3924)
This commit is contained in:
commit
19b6c005b3
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@
|
||||||
},
|
},
|
||||||
canBeCleared(){
|
canBeCleared(){
|
||||||
const uiStateMatch = this.hasMouseHoverHead || this.active;
|
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
|
return uiStateMatch && qualifiesForClear && this.reset; // we return a function
|
||||||
},
|
},
|
||||||
selectOptions() {
|
selectOptions() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue