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