I am currently utilizing a bootstrap 4 dropdown menu that includes tabs within it. Below is the codepin for reference:
I came across this link that provided a helpful solution to prevent the dropdown menu from closing when clicked inside: Avoid dropdown menu close on click inside
However, I am facing an issue where clicking on tabs does not seem to work. Here is the code pin for tabs inside a dropdown menu: bootstrap 4 tabs inside dropdown menu
Is there any alternative solution or approach to make tabs functional within a dropdown menu?
HTML
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
Navbar
</a>
...
...
...
<p></p>
JS
$('.dropdown-menu').on("click.bs.dropdown", function (e) { e.stopPropagation(); e.preventDefault(); });
Is there a possible resolution for this issue?