-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Dropdown — Apply positioning only when Popper is not used #33482
Conversation
ed5fd05
to
65cbee8
Compare
65cbee8
to
624f645
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I’m reading this right, this will now also require the correct data attribute for any placement, yes? We’ll want to document that in our Migration guide I think.
You guys intend to keep the CSS for position variations of In the latest BETA3, the Or you intend to give Popper.js full power over the dropdown position and lock this plugin in this dependency? |
I would suggest you keep the following CSS in place, for minimal functionality without Popper: .dropdown-menu-end {
right: 0;
left: auto;
}
.dropup .dropdown-menu {
top: auto;
bottom: 100%;
} These two are missing and much needed. |
624f645
to
9d36147
Compare
@mdo these data attributes are added to the dropdown menu automatically when it is not positioned by Popper. (Done in #32986). So these are not required to be added by the user. Lines 183 to 185 in 6fe75df
|
9d36147
to
7cd45bd
Compare
Popper is already required for Dropdown, although you can disable the dynamic positioning if you want static position only.
These styles are applied when the dropdown is not using Popper and these are not needed when Popper is used. |
Yes, as of beta 3, they're missing. I mean you set a "dropup", no Popper, it's gonna work like "dropdown". As for .dropdown-menu-end {
--bs-position: end;
} does absolutely nothing. |
Apply positioning styles on the dropdown menus only when they are not using Popper. Since initial positioning styles may interfere with Popper (Previously these styles caused issues).
Ref:
.dropup
#33120Preview:- https://deploy-preview-33482--twbs-bootstrap.netlify.app/docs/5.0/components/dropdowns/