Merge pull request #679 from Dlouxgit/main
fix: handle conflicts between input method engine and enter key in chatbox
This commit is contained in:
@@ -430,7 +430,10 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
|||||||
handleStop?.();
|
handleStop?.();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// ignore if using input method engine
|
||||||
|
if (event.nativeEvent.isComposing) {
|
||||||
|
return
|
||||||
|
}
|
||||||
handleSendMessage?.(event);
|
handleSendMessage?.(event);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user