mirror of https://github.com/ElemeFE/element
Input: not show clear button when value is null (#10912)
parent
56cbdef95b
commit
27a8c1556e
|
@ -122,7 +122,9 @@
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentValue: this.value === undefined ? '' : this.value,
|
currentValue: this.value === undefined || this.value === null
|
||||||
|
? ''
|
||||||
|
: this.value,
|
||||||
textareaCalcStyle: {},
|
textareaCalcStyle: {},
|
||||||
prefixOffset: null,
|
prefixOffset: null,
|
||||||
suffixOffset: null,
|
suffixOffset: null,
|
||||||
|
|
Loading…
Reference in New Issue