Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Bootstrap 5 dropdown tabs #33625

Closed
cpsievert opened this issue Apr 13, 2021 · 0 comments · Fixed by #33634
Closed

Issues with Bootstrap 5 dropdown tabs #33625

cpsievert opened this issue Apr 13, 2021 · 0 comments · Fixed by #33634

Comments

@cpsievert
Copy link
Contributor

In this codepen, if you select one dropdown it'll 'activate' the other:

https://codepen.io/cpsievert/pen/xxgWQjp

Screen Shot 2021-04-13 at 3 58 22 PM

Also, note that the codepen uses the following markup:

<ul class="dropdown-menu">
      <a class="dropdown-item" href="#">Action</a>
</ul>

But, if you use the markup structure that the docs recommend, namely:

<ul class="dropdown-menu">
     <li><a class="dropdown-item" href="#">Action</a></li>
</ul>

Then you'll get other, different, issues with the .active class not being updated properly...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants