Timothy J. Baek 6 月之前
父節點
當前提交
6b620d93a9
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/lib/components/common/Textarea.svelte

+ 4 - 0
src/lib/components/common/Textarea.svelte

@@ -20,6 +20,10 @@
 		}
 	});
 
+	$: if (value) {
+		setTimeout(adjustHeight, 0);
+	}
+
 	const adjustHeight = () => {
 		if (textareaElement) {
 			textareaElement.style.height = '';