Timothy J. Baek hai 6 meses
pai
achega
6b620d93a9
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 = '';