diff --git a/chrome/content/zotero/elements/attachmentBox.js b/chrome/content/zotero/elements/attachmentBox.js index 2c46d8b41b..31eca211b9 100644 --- a/chrome/content/zotero/elements/attachmentBox.js +++ b/chrome/content/zotero/elements/attachmentBox.js @@ -319,6 +319,10 @@ } notify(event, _type, ids, _extraData) { + if (ids.includes(this.item?.parentItem?.id)) { + // Ensure the "Rename from Parent" button is visible after the parent item changes (#5542) + this._resetRenderedFlags(); + } if (event != 'modify' || !this.item?.id || !ids.includes(this.item.id)) return; // Wait for the render finish and then refresh