fix: Restore textarea focus after selecting mention model via mouse

This commit is contained in:
ousugo 2025-02-22 13:19:48 +08:00 committed by 亢奋猫
parent b9b31aed52
commit bba5cac246

View File

@ -487,6 +487,9 @@ const Inputbar: FC<Props> = ({ assistant: _assistant, setActiveTopic }) => {
setMentionModels((prev) => [...prev, model])
setIsMentionPopupOpen(false)
setTimeout(() => {
textareaRef.current?.focus()
}, 0)
}
}