mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 05:09:09 +08:00
fix: Restore textarea focus after selecting mention model via mouse
This commit is contained in:
parent
07ab9de13f
commit
1eb48dfbaf
@ -487,6 +487,9 @@ const Inputbar: FC<Props> = ({ assistant: _assistant, setActiveTopic }) => {
|
|||||||
|
|
||||||
setMentionModels((prev) => [...prev, model])
|
setMentionModels((prev) => [...prev, model])
|
||||||
setIsMentionPopupOpen(false)
|
setIsMentionPopupOpen(false)
|
||||||
|
setTimeout(() => {
|
||||||
|
textareaRef.current?.focus()
|
||||||
|
}, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user