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,7 +431,9 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
return; return;
} }
handleSendMessage?.(event); if (!event.nativeEvent.isComposing) {
handleSendMessage?.(event);
}
} }
}} }}
value={input} value={input}