Browse Source

Input: fix when value is zero (#10714)

杨奕 7 năm trước cách đây
mục cha
commit
769db14516
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/input/src/input.vue

+ 1 - 1
packages/input/src/input.vue

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