mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-04 13:22:21 +00:00
Fixes auto-closing menu
This commit is contained in:
parent
7050013144
commit
ba34e11fb0
1 changed files with 2 additions and 2 deletions
|
@ -210,10 +210,10 @@ let StatusCache = new class {
|
||||||
.forEach(item => BookWyrm.addRemoveClass(item, "is-hidden", true));
|
.forEach(item => BookWyrm.addRemoveClass(item, "is-hidden", true));
|
||||||
|
|
||||||
// Close menu
|
// Close menu
|
||||||
let menu = button.querySelector(".dropdown-trigger[aria-expanded=true]");
|
let menu = button.querySelector("details[open]");
|
||||||
|
|
||||||
if (menu) {
|
if (menu) {
|
||||||
menu.click();
|
menu.removeAttribute("open");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue