mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
feat: add event handling to blur current target element after showing popup
- Added event handling to the onSelectModel function to blur the current target element after showing the SelectModelPopup.
This commit is contained in:
parent
e5100e9547
commit
ba2829e276
@ -23,7 +23,8 @@ const SelectModelButton: FC<Props> = ({ assistant }) => {
|
||||
return null
|
||||
}
|
||||
|
||||
const onSelectModel = async () => {
|
||||
const onSelectModel = async (event: React.MouseEvent<HTMLElement>) => {
|
||||
event.currentTarget.blur()
|
||||
const selectedModel = await SelectModelPopup.show({ model })
|
||||
if (selectedModel) {
|
||||
setModel(selectedModel)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user