Timothy J. Baek 6 月之前
父节点
当前提交
c5d974606f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/lib/components/common/Textarea.svelte

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

@@ -15,6 +15,7 @@
 	onMount(async () => {
 		await tick();
 		if (textareaElement) {
+			await tick();
 			setTimeout(adjustHeight, 0);
 		}
 	});
@@ -32,6 +33,7 @@
 	bind:value
 	{placeholder}
 	on:input={adjustHeight}
+	on:focus={adjustHeight}
 	class={className}
 	{rows}
 	{required}