Fix install dropdown render2 (#2118)

* fix: close other install dropdowns when opening a new one

* fix: render install dropdown above resource item siblings
This commit is contained in:
Eugene Sviridov
2026-06-25 03:18:42 +02:00
committed by GitHub
parent fb1b124ed7
commit 226b11dc87
2 changed files with 17 additions and 1 deletions
+12
View File
@@ -554,6 +554,18 @@ export function setupDropdownCloseHandlers(): void {
e.preventDefault();
const isOpen = dropdown.classList.toggle("open");
toggle.setAttribute("aria-expanded", String(isOpen));
if (isOpen) {
document
.querySelectorAll('.install-dropdown[data-install-scope="list"].open')
.forEach((openDropdown) => {
if (openDropdown === dropdown) return;
openDropdown.classList.remove("open");
openDropdown.querySelector(".install-btn-toggle")
?.setAttribute("aria-expanded", "false");
});
}
return;
}