Fix item type menuitem type attribute

A follow up fix after #4052
Fix the padding of item type menu on MacOS
This commit is contained in:
windingwind 2024-04-30 16:46:30 +08:00
parent dc06c699ec
commit 6db62c6705

View file

@ -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');
}
}