diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index 3054e3219c..f7117cc52d 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1932,8 +1932,6 @@ newVal = val; - // Reset creator mode settings here so that flex attribute gets reset - this.switchCreatorMode(row, (otherFields.fieldMode ? 1 : 0), true); if (Zotero.ItemTypes.getName(this.item.itemTypeID) === "bookSection") { var creatorTypeLabels = document.getAnonymousNodes(this)[0].getElementsByClassName("creator-type-label"); Zotero.debug(creatorTypeLabels[creatorTypeLabels.length-1] + ""); @@ -2018,6 +2016,11 @@ // Disassociate textbox from label label.setAttribute('control', elem.getAttribute('id')); + if (field == 'creator') { + // Set correct flex settings and fieldMode attribute + this.switchCreatorMode(row, (otherFields.fieldMode ? 1 : 0), true); + } + if (this.saveOnEdit) { await this.item.saveTx(); }