Repository navigation
Conversation
…ialog Pressing Enter to confirm IME (e.g. Japanese) text conversion in the knowledge base name field was incorrectly treated as the dialog's submit trigger. The composition-confirm Enter both let the IME finish composing and triggered form submission handling, causing input like "アルゴ" to be duplicated as "アルゴアルゴ". Check event.nativeEvent.isComposing alongside the existing Enter/shiftKey check, matching the same fix already applied to NextMessageInput and FloatingChatWidget.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe dataset creation dialog now ignores Enter key events during IME text composition before triggering form submission. ChangesDataset creation dialog
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Pressing Enter to confirm IME (e.g. Japanese) text conversion in the knowledge base name field of the "Create knowledge base" dialog was incorrectly treated as the dialog's submit trigger. The composition-confirm Enter both let the IME finish composing and triggered the dialog's Enter handler, which called
preventDefault()andform.requestSubmit()— causing input like "アルゴ" to be duplicated as "アルゴアルゴ".Fix
Check
event.nativeEvent.isComposingalongside the existing Enter/shiftKey check inDatasetCreatingDialog'sonKeyDown, matching the same fix already applied toNextMessageInputandFloatingChatWidgetin #16922.Test plan