Skip to content

Commit 4ee20af

Browse files
authored
Merge pull request uPortal-Project#3009 from Naenyn/bugfix/fix_options_dropdown
fix: remove capture-phase click handler that blocks Bootstrap dropdown
2 parents 7b89c46 + f301239 commit 4ee20af

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

uPortal-webapp/src/main/webapp/scripts/portal-analytics.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,7 @@
116116

117117
const existingInstance = bootstrap.Dropdown.getInstance(toggle);
118118
if (existingInstance) existingInstance.dispose();
119-
const instance = new bootstrap.Dropdown(toggle);
120-
121-
// Add click handler to override conflicting JavaScript
122-
toggle.addEventListener(
123-
'click',
124-
function (event_) {
125-
event_.preventDefault();
126-
event_.stopPropagation();
127-
instance.toggle();
128-
},
129-
true
130-
);
119+
new bootstrap.Dropdown(toggle);
131120
}
132121
}, 100);
133122
});

0 commit comments

Comments
 (0)