Browse Source

Textarea: fix undefined in ssr when v-model not set (#10630)

杨奕 7 năm trước cách đây
mục cha
commit
a864d506aa
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 || '',
         textareaCalcStyle: {},
         prefixOffset: null,
         suffixOffset: null,