codacus commited on
Commit
3db4004
·
unverified ·
1 Parent(s): b0ca49d

Update BaseChat.tsx

Browse files
Files changed (1) hide show
  1. app/components/chat/BaseChat.tsx +5 -4
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 (!event.nativeEvent.isComposing) {
435
- handleSendMessage?.(event);
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}