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

Inputs within an Accordion region are not clickable

Open e-cooper opened this issue 3 years ago • 5 comments

🐛 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.

e-cooper avatar Feb 02 '22 21:02 e-cooper