Repository navigation
[combobox] Respect rendered chips for keyboard navigation - #4572
Conversation
commit: |
Bundle size
Deploy previewCheck out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
65b31ac to
794c687
Compare
Codex Review (GPT-5.4)Reviewed the full branch against freshly fetched 1. Bugs / Issues (None)No concrete blocking or non-blocking issues found for the PR’s stated scope: making prefix-limited rendered chips viable without adding a new public Support Matrix
Root Cause & Patch AssessmentThe patch addresses the actual blocker for the prefix-limited workaround: chip keyboard navigation and empty-input Backspace were based on The key boundary is that removal still maps rendered chip position back to Test Coverage AssessmentThe new tests cover the core regression paths: navigation through only rendered chips and Backspace removing the last rendered chip in a sliced-prefix setup. I also ran RecommendationApprove ✅ The branch resolves the original prefix-limited chip workaround blocker and clearly stays inside a small internal behavior change. The unsupported cases are real boundaries, but they are outside the |
mnajdova
left a comment
There was a problem hiding this comment.
Logic looks good. Should we add a public example for it?
Closes #4244
This makes the current Combobox API work for limited-chip rendering when users render a prefix slice of selected values, without adding a new prop/API.
Keyboard navigation and empty-input Backspace now use the rendered chip count instead of the total selected value count, so hidden selections are skipped and the last visible chip is removed.
https://deploy-preview-4572--base-ui.netlify.app/experiments/combobox/limited-chips
Changes