Timothy J. Baek 6 bulan lalu
induk
melakukan
6b620d93a9
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  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 = '';