Commit 9050e61c293255f7cbe9296b1f4ae8a89f1e5103
1 parent
83cc2fd2
fix(select): don't allow to clear the selected option when disabled
close #3924
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/select/select.vue
| ... | ... | @@ -324,7 +324,7 @@ |
| 324 | 324 | }, |
| 325 | 325 | canBeCleared(){ |
| 326 | 326 | const uiStateMatch = this.hasMouseHoverHead || this.active; |
| 327 | - const qualifiesForClear = !this.multiple && this.clearable; | |
| 327 | + const qualifiesForClear = !this.multiple && !this.disabled && this.clearable; | |
| 328 | 328 | return uiStateMatch && qualifiesForClear && this.reset; // we return a function |
| 329 | 329 | }, |
| 330 | 330 | selectOptions() { | ... | ... |