[WIKI-713] fix: extra line created on enter key#7913
[WIKI-713] fix: extra line created on enter key#7913sriramveeraghanta merged 1 commit intopreviewfrom
Conversation
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
WalkthroughKeyboard event handlers in MentionsListDropdown and CommandMenu were updated to consistently return explicit boolean values (true/false) for non-navigation, navigation, and Enter key paths, adjusting control flow without changing public APIs or component structures. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User
participant C as Component (Mentions/CommandMenu)
participant K as onKeyDown Handler
participant S as Selector/State
U->>C: Key press
C->>K: onKeyDown(event)
alt Non-navigation key
K-->>C: return false
else Navigation key (ArrowUp/Down, etc.)
K->>S: compute next index
S-->>K: updated index
K-->>C: return true
else Enter
K->>S: selectItem()
K-->>C: return true
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (2)
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 |
Description
An extra line was created on pressing the enter key every time while mentioning users
Type of Change
Summary by CodeRabbit
Bug Fixes
Accessibility