Fix submenu animation
This commit is contained in:
parent
0b81fef457
commit
c6505d3e39
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,8 @@ Services.scriptloader.loadSubScript('chrome://zotero/content/elements/annotation
|
||||||
this.addEventListener("popuphiding", (e) => {
|
this.addEventListener("popuphiding", (e) => {
|
||||||
if (
|
if (
|
||||||
this !== e.target
|
this !== e.target
|
||||||
|
// Don't animate the popup if it's a submenu
|
||||||
|
|| this.parentElement?.parentElement?.localName === "menupopup"
|
||||||
// open="true" and aria-hidden="true" means it's a native menupopup
|
// open="true" and aria-hidden="true" means it's a native menupopup
|
||||||
|| (this.getAttribute("open", "true") && this.getAttribute("aria-hidden", "true"))
|
|| (this.getAttribute("open", "true") && this.getAttribute("aria-hidden", "true"))
|
||||||
|| !this.getAttribute("animate")
|
|| !this.getAttribute("animate")
|
||||||
|
|
Loading…
Reference in a new issue