diff --git a/source/js/components/nav/mobile-dropdown.js b/source/js/components/nav/mobile-dropdown.js index 69180449219..e44aa917dcd 100644 --- a/source/js/components/nav/mobile-dropdown.js +++ b/source/js/components/nav/mobile-dropdown.js @@ -27,12 +27,6 @@ class NavMobileDropdown extends Accordion { this.title.classList.add("tw-border-s-4"); } - getOpenSibling() { - return document - .querySelector(`${NavMobileDropdown.selector()} [aria-expanded="true"]`) - ?.closest(NavMobileDropdown.selector()); - } - bindEvents() { super.bindEvents(); this.accordion.addEventListener("focus", () => { @@ -68,17 +62,6 @@ class NavMobileDropdown extends Accordion { this.handleWayfindingOpenStyles(); } - let openAccordion = this.getOpenSibling(); - if (openAccordion) { - const title = openAccordion.querySelector("[data-accordion-title]"); - const chevron = openAccordion.querySelector("[data-accordion-title] img"); - const content = openAccordion.querySelector("[data-accordion-content]"); - title.setAttribute("aria-expanded", "false"); - content.setAttribute("aria-hidden", "true"); - chevron.classList.add("tw-rotate-180"); - content.style.height = "0"; - } - super.open(); this.content.style.height = `${this.content.scrollHeight}px`; }