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:
parent
dc06c699ec
commit
6db62c6705
1 changed files with 2 additions and 5 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue