diff --git a/src/components/Textarea.svelte b/src/components/Textarea.svelte index 6787306b8..57597cd3a 100644 --- a/src/components/Textarea.svelte +++ b/src/components/Textarea.svelte @@ -58,9 +58,12 @@ textareaElement.style.height = `0px`; textareaElement.style.height = `${textareaElement.scrollHeight}px`; } + }); + + $effect(() => { if (textareaElement && focus) { textareaElement.focus(); - focussed = false; + focus = false; } });