Input: not show clear button when value is null (#10912)

pull/10914/head
杨奕 2018-04-27 16:22:21 +08:00 committed by GitHub
parent 56cbdef95b
commit 27a8c1556e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -122,7 +122,9 @@
data() {
return {
currentValue: this.value === undefined ? '' : this.value,
currentValue: this.value === undefined || this.value === null
? ''
: this.value,
textareaCalcStyle: {},
prefixOffset: null,
suffixOffset: null,