Skip to content

Commit 9abfd21

Browse files
authored
Merge pull request #3 from hoang17/patch-1
put resize on nextTick so it is rendered correctly
2 parents b19b524 + 84f6084 commit 9abfd21

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)