From 6db62c6705686928453f10082fda1279c11ba6fe Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:46:30 +0800 Subject: [PATCH] Fix item type menuitem type attribute A follow up fix after #4052 Fix the padding of item type menu on MacOS --- chrome/content/zotero/elements/menulistItemTypes.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/elements/menulistItemTypes.js b/chrome/content/zotero/elements/menulistItemTypes.js index 2508a6a834..65ce7e094d 100644 --- a/chrome/content/zotero/elements/menulistItemTypes.js +++ b/chrome/content/zotero/elements/menulistItemTypes.js @@ -33,10 +33,6 @@ } class ItemTypeMenuList extends customElements.get("menulist") { - constructor() { - super(); - } - connectedCallback() { super.connectedCallback(); @@ -65,7 +61,8 @@ for (let i = 0; i < itemTypes.length; i++) { let name = itemTypes[i].name; if (name != 'attachment' && name != 'note' && name != 'annotation') { - this.appendItem(itemTypes[i].localized, itemTypes[i].id); + let menuitem = this.appendItem(itemTypes[i].localized, itemTypes[i].id); + menuitem.setAttribute('type', 'radio'); } }