Skip to content

Commit 30a5501

Browse files
committed
fix(chat): prevent Enter key action during IME composition
1 parent 358ad8b commit 30a5501

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/postgres-new/components/chat.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ export default function Chat() {
506506
return
507507
}
508508

509+
if ( e.nativeEvent.isComposing )
510+
{
511+
return
512+
}
513+
509514
if (e.key === 'Enter' && !e.shiftKey) {
510515
e.preventDefault()
511516
if (!isLoading && isSubmitEnabled) {

0 commit comments

Comments
 (0)