All drop-down menus are expected to close whenever the page is being scrolled. This is implemented for regular drop-down menus, but this one bypasses the general API.
See https://www.woltlab.com/community/thread/296092-fenster-zitieren-inhalt-melden-%C3%BCberlagert-men%C3%BC-mobil/
initButtonGroupNavigation();
initMessages();
});
+
+ document.addEventListener("scroll", () => closeDropdown(), { passive: true });
}
function initButtonGroupNavigation(): void {
initButtonGroupNavigation();
initMessages();
});
+ document.addEventListener("scroll", () => closeDropdown(), { passive: true });
}
function initButtonGroupNavigation() {
document.querySelectorAll(".buttonGroupNavigation").forEach((navigation) => {