From 27a8c1556e30ae38423ebc4bb100486e59b8601f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A5=95?= Date: Fri, 27 Apr 2018 16:22:21 +0800 Subject: [PATCH] Input: not show clear button when value is null (#10912) --- packages/input/src/input.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/input/src/input.vue b/packages/input/src/input.vue index 1d5b4d683..8e8777851 100644 --- a/packages/input/src/input.vue +++ b/packages/input/src/input.vue @@ -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,