Currently, I'm encountering an issue with Bootstrap where placing a dropdown inside an accordion causes the dropdown menu of the first accordion header to be visually obstructed by the dropdown of the second accordion header when triggered.
To better illustrate my problem, I have created a simplified code snippet below for reference as actions speak louder than words.
Feel free to inspect the following HTML. When you attempt to click on the first dropdown labeled "Turn On/Off," the entire dropdown menu is not fully visible.
<!DOCTYPE html>
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f89a97978c8b8c8a9988b8cdd6cbd6c9">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b6d4d9d9c2c5c2c4d7c6f68398859887">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"&...;
<div class="badge bg-light text-dark me-2 border p-2">
Online
</div>
<strong>Server2</strong>
</button>
</h2>
</div>
</div>
</body>
</html>
I've dedicated hours to resolving this issue by exhaustively researching online, yet I still haven't found a viable solution.
I've conducted tests on both Firefox and Chrome, and unfortunately, the problem persists in both browsers.
Various attempts were made to rectify the problem, including manual adjustments to the z-index values of ul, li, and button tags to 1000. Additionally, I experimented with altering the z-index and position properties of different elements using developer tools but to no avail.