fix: handle conflicts between input method engine and enter key

This commit is contained in:
Dlouxgit 2024-12-13 12:16:57 +08:00
parent 8c7a9f750f
commit b0ca49d65e

View File

@ -431,8 +431,10 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
return;
}
if (!event.nativeEvent.isComposing) {
handleSendMessage?.(event);
}
}
}}
value={input}
onChange={(event) => {