From 3e91765472836faac7e6bcba1748c4fc0016dea8 Mon Sep 17 00:00:00 2001 From: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Date: Fri, 23 Dec 2022 03:44:30 +0530 Subject: [PATCH] fix: Expand title height of textarea on load (#6103) --- app/javascript/shared/components/ResizableTextArea.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/javascript/shared/components/ResizableTextArea.vue b/app/javascript/shared/components/ResizableTextArea.vue index 6c7f8a78a..ce2a42488 100644 --- a/app/javascript/shared/components/ResizableTextArea.vue +++ b/app/javascript/shared/components/ResizableTextArea.vue @@ -37,6 +37,13 @@ export default { this.resizeTextarea(); }, }, + mounted() { + this.$nextTick(() => { + if (this.value) { + this.resizeTextarea(); + } + }); + }, methods: { resizeTextarea() { if (!this.value) {