From 3ff13bc08ddfc01b29e6a30136a06f5a1259abd5 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 21 May 2025 12:11:42 -0400 Subject: [PATCH] Info box: Fix second right-click opening section menu On Windows, after right-clicking on a title field. this.querySelector('popupset') matched the popupset in the collapsible-section head, not our own. Fixes #5294 --- chrome/content/zotero/elements/itemBox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/itemBox.js b/chrome/content/zotero/elements/itemBox.js index 2fd8565fdb..ac68be23a7 100644 --- a/chrome/content/zotero/elements/itemBox.js +++ b/chrome/content/zotero/elements/itemBox.js @@ -592,7 +592,6 @@ optionsButton.className = "zotero-clicky zotero-clicky-options show-on-hover"; optionsButton.setAttribute('data-l10n-id', "itembox-button-options"); optionsButton.id = `itembox-field-${fieldName}-options`; - // eslint-disable-next-line no-loop-func let triggerPopup = (e) => { let menupopup = ZoteroPane.buildFieldTransformMenu({ target: valueElement, @@ -600,7 +599,7 @@ this._setFieldTransformedValue(valueElement, newValue); } }); - this.querySelector('popupset').append(menupopup); + this.querySelector('#info-box > popupset').append(menupopup); menupopup.addEventListener('popuphidden', () => { menupopup.remove(); });