You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to render a Bootstrap Dropdown element opened by default with the data-bs-auto-close="outside" attribute. For this, I use the "show" classes for the "dropdown-toggle" and "dropdown-menu" elements.
It renders as opened, but the auto-close feature doesn't work - when I click outside of the dropdown menu, it stays visible on the wepage.
Prerequisites
Describe the issue
I need to render a Bootstrap Dropdown element opened by default with the data-bs-auto-close="outside" attribute. For this, I use the "show" classes for the "dropdown-toggle" and "dropdown-menu" elements.
It renders as opened, but the auto-close feature doesn't work - when I click outside of the dropdown menu, it stays visible on the wepage.
Reduced test cases
Here is a Codepen repoducing this bug: https://codepen.io/MurzNN/pen/ogNVXMY
And the code:
The problem is with the "Clickable outside 2" button.
P.S. The Positioning of the dropdown menu is wrong too, but this is another bug #41148
What operating system(s) are you seeing the problem on?
Windows, Linux
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.3.4
The text was updated successfully, but these errors were encountered: