mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
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
This commit is contained in:
parent
46f80ebdfb
commit
3ff13bc08d
1 changed files with 1 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue