Skip to content

Commit 1d2b93c

Browse files
committed
fix: textarea height not correct #2974
1 parent ee0470c commit 1d2b93c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/input/ResizableTextArea.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ const ResizableTextArea = {
2929
},
3030
mixins: [BaseMixin],
3131
mounted() {
32-
this.resizeTextarea();
32+
this.$nextTick(() => {
33+
this.resizeTextarea();
34+
});
3335
},
3436
beforeDestroy() {
3537
raf.cancel(this.nextFrameActionId);

0 commit comments

Comments
 (0)