mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-13 23:14:11 +00: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:
parent
0edd731c74
commit
887372aca5
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
? [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue