mirror of https://github.com/ElemeFE/element
Input: disabled Input should not show clear icon (#10331)
parent
c34193ca8e
commit
430c149d88
|
@ -197,7 +197,7 @@
|
||||||
return this.$slots.prepend || this.$slots.append;
|
return this.$slots.prepend || this.$slots.append;
|
||||||
},
|
},
|
||||||
showClear() {
|
showClear() {
|
||||||
return this.clearable && this.currentValue !== '' && (this.focused || this.hovering);
|
return this.clearable && !this.disabled && this.currentValue !== '' && (this.focused || this.hovering);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue