Repository navigation
Conversation
isihussain
reviewed
Nov 17, 2026
isihussain
left a comment
Contributor
There was a problem hiding this comment.
Code Review: Multi-Axis Evaluation
Excellent attention to keyboard interaction details @mvanhorn! In multi-select ComboBox, pressing Tab should dismiss the popover without toggling or selecting the focused item.
1. Interaction Model & Keyboard Semantics
- Commit vs Close:
- In single-select mode,
Tabcommitting the focused item matches user expectations. - In multi-select mode, options are explicitly toggled via
SpaceorEnter. Callingstate.commit()onTabinadvertently selected whatever option happened to be under focus, frustrating users navigating forms via keyboard.
- In single-select mode,
- Targeted Condition:
cleanly differentiates the modes while preserving existing single-select behavior.
if (props.selectionMode === 'multiple') { state.close(); } else { state.commit(); }
2. Test Verification
- The test suites in
packages/react-aria-components/test/ComboBox.test.jsandpackages/react-aria/test/combobox/useComboBox.test.jsthoroughly assert that{Tab}and{Shift>}{Tab}preserve selected keys and callcloseinstead ofcommit.
Summary: Perfect keyboard navigation fix for multi-select combo boxes. Strongly approve!
snowystinger
approved these changes
Nov 18, 2026
snowystinger
left a comment
Member
There was a problem hiding this comment.
I think this seems correct. Thanks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
It addresses the behavior reported in issue #10974.
fix: keep multi-select ComboBox selection when Tab closes the popover
Closes #10974
📝 Test Instructions
The targeted tests for the react-spectrum useComboBox change pass locally.
The tests in
packages/react-aria-components/test/ComboBox.test.jsandpackages/react-aria/test/combobox/useComboBox.test.jsfail without the fix in the react-spectrum useComboBox change (checked by reverting the source changes).Regression check for the react-spectrum useComboBox change: 4 fail on main, all 61 pass with the fix; hosted CI not run.
Release impact
✅ PR Checklist
🧢 Your Project
Not applicable to this change.
AI was used for assistance.