Input: disabled Input should not show clear icon (#10331)

pull/10338/head
杨奕 2018-03-23 16:36:58 +08:00 committed by GitHub
parent c34193ca8e
commit 430c149d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@
return this.$slots.prepend || this.$slots.append;
},
showClear() {
return this.clearable && this.currentValue !== '' && (this.focused || this.hovering);
return this.clearable && !this.disabled && this.currentValue !== '' && (this.focused || this.hovering);
}
},