diff --git a/chrome/content/zotero/customElements.js b/chrome/content/zotero/customElements.js index c11bfe7747..3b482e0875 100644 --- a/chrome/content/zotero/customElements.js +++ b/chrome/content/zotero/customElements.js @@ -103,8 +103,9 @@ Services.scriptloader.loadSubScript('chrome://zotero/content/elements/annotation // Update animate attribute when the popup is hiding and trigger the fade out animation this.addEventListener("popuphiding", (e) => { if ( + this !== e.target // 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") || ["false", "false-once"].includes(this.getAttribute("animate"))) { return;