Commit d304cb27 authored by 杨奕's avatar 杨奕 Committed by GitHub

Input: hide clear button when readonly (#10998)

parent dd773b9e
......@@ -196,7 +196,11 @@
return this.$slots.prepend || this.$slots.append;
},
showClear() {
return this.clearable && !this.disabled && this.currentValue !== '' && (this.focused || this.hovering);
return this.clearable &&
!this.disabled &&
!this.readonly &&
this.currentValue !== '' &&
(this.focused || this.hovering);
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment