Skip to content

Inputs within an Accordion region are not clickable #2801

@e-cooper

Description

@e-cooper

🐛 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/accordion@3.0.0-alpha.2 breaks this implementation with an unexpected error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions