component-library
component-library copied to clipboard
onOpen event does not pass anything on Accordion
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Create accordion using example fromhttps://baseline.10up.com/component/accordion/
- Set the onOpen callback using the example https://baseline.10up.com/component/accordion/
- You will get an error saying the object cannot be destructured.
Expected behavior It should pass the element on open.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Mobile (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Please list more relevant information here.