Skip to content

Conversation

@reidbarber
Copy link
Member

Fixes #9215

Same as we already do in useSelectableItem:

// Prevent DOM focus from moving on mouse down when using virtual focus
shouldUseVirtualFocus ? {onMouseDown: e => e.preventDefault()} : undefined

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@rspbot
Copy link

rspbot commented Nov 21, 2025

@rspbot
Copy link

rspbot commented Dec 17, 2025

@reidbarber reidbarber added this pull request to the merge queue Dec 22, 2025
Merged via the queue into main with commit e1c05d6 Dec 22, 2025
32 checks passed
@reidbarber reidbarber deleted the fix-listbox-section-closing-onclick branch December 22, 2025 15:21
@yihuiliao yihuiliao added the RAC label Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Combobox closes when attempting to interact with the Section Headers

5 participants