fix: textarea height not correct #2974

pull/3143/head
tangjinzhou 2020-11-06 21:25:45 +08:00
parent ee0470c280
commit 1d2b93c871
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ const ResizableTextArea = {
},
mixins: [BaseMixin],
mounted() {
this.$nextTick(() => {
this.resizeTextarea();
});
},
beforeDestroy() {
raf.cancel(this.nextFrameActionId);