fix: handle conflicts between input method engine and enter key
This commit is contained in:
@@ -431,7 +431,9 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSendMessage?.(event);
|
if (!event.nativeEvent.isComposing) {
|
||||||
|
handleSendMessage?.(event);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
value={input}
|
value={input}
|
||||||
|
|||||||
Reference in New Issue
Block a user