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 = '';