From 49feef74f5542d5819aafa20917f45fcf7dcaf77 Mon Sep 17 00:00:00 2001 From: AsparkArcane Date: Tue, 12 May 2026 12:02:07 +0530 Subject: [PATCH 1/3] Fix: Resource Dropdown Signed-off-by: AsparkArcane --- layouts/partials/navbar.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 906a9b9d258..4cd19711389 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -224,12 +224,16 @@ event.stopPropagation(); // hide any other active dropdowns - const allActiveDropdowns = document.querySelectorAll(".nav-link.current"); + // Added [data-toggle='dropdown'] so it ignores active page links like #cloud or #kanvas + const allActiveDropdowns = document.querySelectorAll(".nav-link.current[data-toggle='dropdown']"); allActiveDropdowns.forEach((otherDropdown) => { if (otherDropdown !== dropdown) { otherDropdown.classList.remove("current"); - otherDropdown.nextElementSibling.classList.remove("show"); - otherDropdown.nextElementSibling.style.visibility = "hidden"; + // Added a safety check to ensure the nextElementSibling actually exists before modifying it + if (otherDropdown.nextElementSibling) { + otherDropdown.nextElementSibling.classList.remove("show"); + otherDropdown.nextElementSibling.style.visibility = "hidden"; + } } }); From 89bc0a7a0b184b4d62f844c10be98bfbf7b25f7b Mon Sep 17 00:00:00 2001 From: Nathan Dsouza Date: Tue, 12 May 2026 18:33:17 +0530 Subject: [PATCH 2/3] Update layouts/partials/navbar.html Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Nathan Dsouza --- layouts/partials/navbar.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 4cd19711389..a17a4e5bd9f 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -229,11 +229,11 @@ allActiveDropdowns.forEach((otherDropdown) => { if (otherDropdown !== dropdown) { otherDropdown.classList.remove("current"); - // Added a safety check to ensure the nextElementSibling actually exists before modifying it - if (otherDropdown.nextElementSibling) { - otherDropdown.nextElementSibling.classList.remove("show"); - otherDropdown.nextElementSibling.style.visibility = "hidden"; - } +const menu = otherDropdown.nextElementSibling; +if (menu) { + menu.classList.remove("show"); + menu.style.visibility = "hidden"; +} } }); From c377b8ec473548986b19afe6af85377d384633ad Mon Sep 17 00:00:00 2001 From: Nathan Dsouza Date: Wed, 13 May 2026 11:08:00 +0530 Subject: [PATCH 3/3] Update navbar.html Signed-off-by: Nathan Dsouza --- layouts/partials/navbar.html | 51 ++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index a17a4e5bd9f..a7bdc93a78b 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -229,31 +229,32 @@ allActiveDropdowns.forEach((otherDropdown) => { if (otherDropdown !== dropdown) { otherDropdown.classList.remove("current"); -const menu = otherDropdown.nextElementSibling; -if (menu) { - menu.classList.remove("show"); - menu.style.visibility = "hidden"; -} - } - }); - - if (dropdown.classList.contains("current")) { - dropdown.classList.remove("current"); - dropdownMenu.classList.remove("show"); - dropdownMenu.style.visibility = "hidden"; - } else { - dropdown.classList.toggle("current"); - dropdownMenu.classList.toggle("show"); - dropdownMenu.style.visibility = "visible"; - } - }); - - document.body.addEventListener('click', function() { - if (dropdown.classList.contains("current")) { - dropdown.classList.remove("current"); - dropdownMenu.classList.remove("show"); - dropdownMenu.style.visibility = "hidden"; - } + const menu = otherDropdown.nextElementSibling; + if (menu) { + menu.classList.remove("show"); + menu.style.visibility = "hidden"; + } + } + }); + + if (dropdown.classList.contains("current")) { + dropdown.classList.remove("current"); + dropdownMenu.classList.remove("show"); + dropdownMenu.style.visibility = "hidden"; + } + else { + dropdown.classList.toggle("current"); + dropdownMenu.classList.toggle("show"); + dropdownMenu.style.visibility = "visible"; + } + }); + + document.body.addEventListener('click', function() { + if (dropdown.classList.contains("current")) { + dropdown.classList.remove("current"); + dropdownMenu.classList.remove("show"); + dropdownMenu.style.visibility = "hidden"; + } }); }