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

modify dropdown selectors and prevent conflicts with bootstrap 5+ #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RobertK0
Copy link

.layout-dropdown class is only ever used in conjunction with .dropdown, but it was inadvertently causing issues with other packages which did not use layout-dropdown class

To fix this, layout-dropdown selector was changed to dropdown, which is the default bootstrap class

Along with this, added another condition that targets only bootstrap 5+ using data-bs-toggle parameter, which replaced data-toggle; In versions 5+, bootstrap implemented automatic dropdown closing and configuration through data parameters, rendering this snippet of code unnecessary for those versions, and this condition should prevent that.

@RobertK0 RobertK0 requested a review from emodric January 31, 2025 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant