Explorar el Código

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

杨奕 hace 7 años
padre
commit
a864d506aa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,