springload/react-accessible-accordion

Clicking Input located on AccordionItemButton

shushan-ab opened this issue · 3 comments

How can I override event during expanding or collapsing, when I'm clicking on input located on AccordionItemButton?

My understanding is that you're not supposed to do that.

The button should not have other interactive elements within it, for accessibility reasons.

Thanks for answer @holloway!
By the way I have added custom checkbox and it worked without any additional changes, so by clicking checkbox AccordionPanel didn't collapse.Then I thought that it should be working with input(type=number) as well.

I'm just closing this ticket for now, but please reopen to discuss further