mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-25 17:00:52 -04:00
fix: apply the selection highlight only when the editor is unfocused and keep it out of the chat input (#29952)
This commit is contained in:
@@ -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
|
||||
? [
|
||||
|
||||
Reference in New Issue
Block a user