diff --git a/sonar/theme/templates/sonar/page.html b/sonar/theme/templates/sonar/page.html
index 5889ea54e..1c538d9eb 100755
--- a/sonar/theme/templates/sonar/page.html
+++ b/sonar/theme/templates/sonar/page.html
@@ -163,11 +163,6 @@
document.addEventListener('click', function (event) {
let link = event.target;
- // Don't do anything if element don't have custom class.
- if (!link.matches('.dropdown-toggle-custom')) {
- return;
- }
-
const dropdowns = document.getElementsByClassName('dropdown-menu show');
// If the clicked element doesn't have the right selector, bail