fix: textarea height not correct #2974
parent
ee0470c280
commit
1d2b93c871
|
@ -29,7 +29,9 @@ const ResizableTextArea = {
|
||||||
},
|
},
|
||||||
mixins: [BaseMixin],
|
mixins: [BaseMixin],
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.$nextTick(() => {
|
||||||
this.resizeTextarea();
|
this.resizeTextarea();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
raf.cancel(this.nextFrameActionId);
|
raf.cancel(this.nextFrameActionId);
|
||||||
|
|
Loading…
Reference in New Issue