Open jhoward-eightfold opened 2 months ago
Accordions inside scrollable modals do not play nicely together. Hack fix for this is to wrap the accordion in a div or other block level element. Then it works fine.
Reproduction: https://codesandbox.io/p/sandbox/modal-accordion-combo-reproduction-zrf494?file=%2Fdemo.js%3A1%2C1-66%2C1
It's more the Modal children using an empty node <></> as the parent that's the root cause. However, Accordion does act strangely in this scenario.
<></>
Accordions inside scrollable modals do not play nicely together. Hack fix for this is to wrap the accordion in a div or other block level element. Then it works fine.
Reproduction: https://codesandbox.io/p/sandbox/modal-accordion-combo-reproduction-zrf494?file=%2Fdemo.js%3A1%2C1-66%2C1