react-spectrum
react-spectrum copied to clipboard
Inputs within an Accordion region are not clickable
🐛 Bug Report
This happens due to the overridden onMouseDown event within useSelectableCollection.
🤔 Expected Behavior
Inputs should be clickable from inside of an Accordion region.
😯 Current Behavior
Not all element types are impacted, but inputs are the primary reason for this ticket.
💁 Possible Solution
Perform a further check in the event to target scrollbars if possible.
🔦 Context
We're trying to do something similar to the WAI-ARIA example for Accordion.
💻 Code Sample
https://codesandbox.io/s/fervent-fast-g36d2?file=/src/AccordionItem.js
I also noticed that upgrading to @react-aria/[email protected] breaks this implementation with an unexpected error.