mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-23 03:07:05 +00:00
fix: handle conflicts between input method engine and enter key
This commit is contained in:
parent
8c7a9f750f
commit
b0ca49d65e
@ -431,8 +431,10 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
||||
return;
|
||||
}
|
||||
|
||||
if (!event.nativeEvent.isComposing) {
|
||||
handleSendMessage?.(event);
|
||||
}
|
||||
}
|
||||
}}
|
||||
value={input}
|
||||
onChange={(event) => {
|
||||
|
Loading…
Reference in New Issue
Block a user