updateLocaleList: Append menuitem to menupopup, not parent menulist

Appending to the menulist sort of worked - the text of the added
menuitem appeared in the menulist label, albeit off to the right -
but the item didn't actually show in the menu and didn't get removed
on subsequent calls.
This commit is contained in:
Abe Jellinek 2024-02-14 16:38:09 -05:00
parent ba5d34876e
commit fbc82f687d

View file

@ -598,7 +598,7 @@ Zotero.Styles = new function() {
menuitem.setAttribute('label', selectLocale);
menuitem.setAttribute('value', selectLocale);
menuitem.setAttributeNS('zotero:', 'customLocale', true);
menulist.append(menuitem);
menulist.menupopup.append(menuitem);
}
return menulist.value = selectLocale;