Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

header: Fix unresponsive dropdown pill on /help pages.

Eeshan Garg7196b5ac8499
diff --git a/static/js/portico/header.js b/static/js/portico/header.js
index 0a5798cb97a..ecf48000fad 100644
--- a/static/js/portico/header.js
+++ b/static/js/portico/header.js
@@ -8,12 +8,12 @@ $(() => {
$(".dropdown").on("click", (e) => {
const $this = $(e.target);
- const dropdown_is_shown = $this.closest("ul .dropdown").hasClass("show");
+ const dropdown_is_shown = $this.closest(".dropdown").hasClass("show");
if (!dropdown_is_shown) {
- $this.closest("ul .dropdown").addClass("show");
+ $this.closest(".dropdown").addClass("show");
} else if (dropdown_is_shown) {
- $this.closest("ul .dropdown").removeClass("show");
+ $this.closest(".dropdown").removeClass("show");
}
});