Skip to content

Commit 84f6084

Browse files
authored
put resize on nextTick so it is render correctly
1 parent b19b524 commit 84f6084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TextareaAutosize.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default {
126126
* Emit input event as in https://vuejs.org/v2/guide/components.html#Form-Input-Components-using-Custom-Events
127127
*/
128128
val (val) {
129-
this.resize()
129+
this.$nextTick(this.resize)
130130
this.$emit('input', val)
131131
}
132132
}

0 commit comments

Comments
 (0)