I've structured my page content using nested bootstrap accordions within Bootstrap 5.
The primary accordion is organized by continents, with each panel containing a secondary accordion for individual countries.
While the main accordion functions correctly, allowing only one continent to be open at a time, the nested accordions are not behaving as expected. The issue seems to be related to the data-bs-parent value set accordingly.
What could be causing the nested accordion panels not to close as intended?
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f5979a9a818681879485b5c0dbc4dbc7">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-uWxY/CJNBR+1zjPWmfnSnVxwRheevXITnMqoEIeG1LJrdI0GlVs/9cVSyPYXdcSF" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5f3d30302b2c2b2d3e2f1f6a716e716d">[email protected]</a>/dist/js/bootstrap.min.js" integrity="sha384-PsUw7Xwds7x08Ew3exXhqzbhuEYmA2xnwc8BuD6SEr+UmEHlX8/MCltYEodzWA4u" crossorigin="anonymous"></script>
<!-- Accordion HTML to be placed here -->