diff --git a/src/components/Textarea.svelte b/src/components/Textarea.svelte index 70ff9c75d..7c719356b 100644 --- a/src/components/Textarea.svelte +++ b/src/components/Textarea.svelte @@ -41,7 +41,7 @@ }); afterUpdate(() => { - if (textareaElement) { + if (textareaElement && focus) { textareaElement.setSelectionRange(selectionStart, selectionEnd); textareaElement.focus(); } diff --git a/src/components/Thread.svelte b/src/components/Thread.svelte index 3d52954e0..5cd17d170 100644 --- a/src/components/Thread.svelte +++ b/src/components/Thread.svelte @@ -114,6 +114,7 @@