diff --git a/chrome/content/zotero/xpcom/pluginAPI/buttonManager.js b/chrome/content/zotero/xpcom/pluginAPI/buttonManager.js index 8e6f65fd74..c9e5c069bb 100644 --- a/chrome/content/zotero/xpcom/pluginAPI/buttonManager.js +++ b/chrome/content/zotero/xpcom/pluginAPI/buttonManager.js @@ -270,6 +270,7 @@ Zotero.MenuManager.updateMenuPopup(subPopup, option._menuTarget, { event, getContext, + pluginID: option.pluginID, }); }); } @@ -444,6 +445,7 @@ Zotero.MenuManager.updateMenuPopup(popup, option._menuTarget, { event, getContext: () => this._getContext(reader), + pluginID: option.pluginID, }); }); }); @@ -778,7 +780,10 @@ if (!option._menuTarget) { return; } - Zotero.MenuManager.updateMenuPopup(popupElem, option._menuTarget, args); + Zotero.MenuManager.updateMenuPopup(popupElem, option._menuTarget, { + ...args, + pluginID: option.pluginID, + }); }, updateOverflowPopup(popupElem, options, args) {