Update BaseChat.tsx
Browse files
app/components/chat/BaseChat.tsx
CHANGED
|
@@ -425,15 +425,16 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
|
| 425 |
}
|
| 426 |
|
| 427 |
event.preventDefault();
|
| 428 |
-
|
| 429 |
if (isStreaming) {
|
| 430 |
handleStop?.();
|
| 431 |
return;
|
| 432 |
}
|
| 433 |
-
|
| 434 |
-
if (
|
| 435 |
-
|
| 436 |
}
|
|
|
|
| 437 |
}
|
| 438 |
}}
|
| 439 |
value={input}
|
|
|
|
| 425 |
}
|
| 426 |
|
| 427 |
event.preventDefault();
|
| 428 |
+
|
| 429 |
if (isStreaming) {
|
| 430 |
handleStop?.();
|
| 431 |
return;
|
| 432 |
}
|
| 433 |
+
// ignore if using input method engine
|
| 434 |
+
if (event.nativeEvent.isComposing) {
|
| 435 |
+
return
|
| 436 |
}
|
| 437 |
+
handleSendMessage?.(event);
|
| 438 |
}
|
| 439 |
}}
|
| 440 |
value={input}
|