Fixes auto-closing menu

This commit is contained in:
Mouse Reeve 2021-12-04 12:11:29 -08:00
parent 7050013144
commit ba34e11fb0

View file

@ -210,10 +210,10 @@ let StatusCache = new class {
.forEach(item => BookWyrm.addRemoveClass(item, "is-hidden", true));
// Close menu
let menu = button.querySelector(".dropdown-trigger[aria-expanded=true]");
let menu = button.querySelector("details[open]");
if (menu) {
menu.click();
menu.removeAttribute("open");
}
}