Update BaseChat.tsx
This commit is contained in:
@@ -430,10 +430,11 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
||||
handleStop?.();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!event.nativeEvent.isComposing) {
|
||||
handleSendMessage?.(event);
|
||||
// ignore if using input method engine
|
||||
if (event.nativeEvent.isComposing) {
|
||||
return
|
||||
}
|
||||
handleSendMessage?.(event);
|
||||
}
|
||||
}}
|
||||
value={input}
|
||||
|
||||
Reference in New Issue
Block a user