mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +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])
|
||||
setIsMentionPopupOpen(false)
|
||||
setTimeout(() => {
|
||||
textareaRef.current?.focus()
|
||||
}, 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user