Fix several issues around browser back navigation (#825)

This commit is contained in:
Sascha Ißbrücker
2024-09-15 08:28:49 +02:00
committed by GitHub
parent 74e65bc366
commit db225d5267
10 changed files with 64 additions and 23 deletions

View File

@@ -16,6 +16,10 @@ class DropdownBehavior extends Behavior {
});
}
destroy() {
this.close();
}
open() {
this.element.classList.add("active");
document.addEventListener("click", this.onOutsideClick);