From 887372aca5fc90e8cb56dcf890d5529b8e574b9c Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Sat, 12 Sep 2026 17:19:09 -0400 Subject: [PATCH] fix: apply the selection highlight only when the editor is unfocused and keep it out of the chat input (#29952) --- src/lib/components/common/RichTextInput.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte index 979fab49ba..930994decc 100644 --- a/src/lib/components/common/RichTextInput.svelte +++ b/src/lib/components/common/RichTextInput.svelte @@ -724,9 +724,9 @@ props: { decorations: (state) => { const { selection } = state; - const { focused } = this.editor; + const { isFocused } = this.editor; - if (focused || selection.empty) { + if (isFocused || selection.empty) { return null; } @@ -830,7 +830,7 @@ ...(messageInput ? [PromptItalic] : []), ...(dragHandle ? [ListItemDragHandle] : []), Placeholder.configure({ placeholder: () => _placeholder, showOnlyWhenEditable: false }), - SelectionDecoration, + ...(messageInput ? [] : [SelectionDecoration]), ...(richText ? [