Skip to content

Commit 1b1aac7

Browse files
committed
modify dropdown selectors and prevent conflicts with bootstrap 5+
1 parent 9188832 commit 1b1aac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundle/Resources/es6/location.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ $(function () {
356356
});
357357

358358
$(document).on('click', (e) => {
359-
if ($(e.target).closest('.dropdown-menu').length === 0 && $(e.target).closest('.layout-dropdown').length === 0) {
359+
if ($(e.target).closest('.dropdown-menu').length === 0 && $(e.target).closest('.dropdown').length === 0 && !($(e.target).dataset.bsToggle === "dropdown")) {
360360
$('.dropdown-menu').removeClass('show');
361361
$('.layout-dropdown').removeClass('show');
362362
}

0 commit comments

Comments
 (0)