react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

fix(ListBox): prevent closing Combobox when a section header is clicked

Open reidbarber opened this issue 2 weeks ago • 1 comments

Fixes https://github.com/adobe/react-spectrum/issues/9215

Same as we already do in useSelectableItem:

https://github.com/adobe/react-spectrum/blob/5d472d49be6c25f50679255b1cd6b96e264ead93/packages/%40react-aria/selection/src/useSelectableItem.ts#L398-L399

✅ 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:

reidbarber avatar Nov 21 '25 17:11 reidbarber