dropdown.classList.remove("dropdownOpen");
_menus.get(containerId)!.classList.remove("dropdownOpen");
+ const button = dropdown.querySelector<HTMLElement>(".dropdownToggle");
+ if (button) {
+ button.setAttribute("aria-expanded", "false");
+ }
+
notifyCallbacks(containerId, "close");
}
});
if (dropdown.classList.contains("dropdownOpen")) {
dropdown.classList.remove("dropdownOpen");
_menus.get(containerId).classList.remove("dropdownOpen");
+ const button = dropdown.querySelector(".dropdownToggle");
+ if (button) {
+ button.setAttribute("aria-expanded", "false");
+ }
notifyCallbacks(containerId, "close");
}
});