You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by sh...@apache.org on 2025/12/27 10:07:28 UTC
(airflow-site) branch fix-navbar-toggle-button-in-dev-mode created (now 8359e10788)
This is an automated email from the ASF dual-hosted git repository.
shahar pushed a change to branch fix-navbar-toggle-button-in-dev-mode
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
at 8359e10788 Fix navbar toggle button in dev mode
This branch includes the following new commits:
new 8359e10788 Fix navbar toggle button in dev mode
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(airflow-site) 01/01: Fix navbar toggle button in dev mode
Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
shahar pushed a commit to branch fix-navbar-toggle-button-in-dev-mode
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
commit 8359e10788a44afdac5f8d5cb91b4ae8331b35c8
Author: Shahar Epstein <60...@users.noreply.github.com>
AuthorDate: Sat Dec 27 12:07:10 2025 +0200
Fix navbar toggle button in dev mode
---
landing-pages/src/js/drawer.js | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/landing-pages/src/js/drawer.js b/landing-pages/src/js/drawer.js
index 13eaa2eb7d..8098fce5f4 100644
--- a/landing-pages/src/js/drawer.js
+++ b/landing-pages/src/js/drawer.js
@@ -17,6 +17,8 @@
* under the License.
*/
+const toggleButton = window.document.querySelector("#navbar-toggle-button");
+
const toggleDrawer = () => {
const drawer = window.document.querySelector("#navbar-drawer");
const hamburgerIcon = window.document.querySelector("#hamburger-icon");
@@ -27,4 +29,10 @@ const toggleDrawer = () => {
closeIcon.classList.toggle("visible");
};
-window.document.querySelector("#navbar-toggle-button").addEventListener("click", toggleDrawer);
+if (toggleButton) {
+ if (toggleButton.handler) {
+ toggleButton.removeEventListener("click", toggleButton.handler);
+ }
+ toggleButton.handler = toggleDrawer;
+ toggleButton.addEventListener("click", toggleButton.handler);
+}