fix: Restore textarea focus after selecting mention model via mouse
This commit is contained in:
parent
b9b31aed52
commit
bba5cac246
@ -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…
x
Reference in New Issue
Block a user