From c8cf38cdf174e1ae9db86ea5b9bb95d2a6d77304 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Sat, 25 May 2024 04:09:19 -0400 Subject: [PATCH] fix itembox creator btns not hiding in view mode (#4169) Fixes: #4166 --- chrome/content/zotero/elements/itemBox.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/itemBox.js b/chrome/content/zotero/elements/itemBox.js index bc60b2f424..1300616e52 100644 --- a/chrome/content/zotero/elements/itemBox.js +++ b/chrome/content/zotero/elements/itemBox.js @@ -834,6 +834,7 @@ } this._ensureButtonsFocusable(); + this._updateCreatorButtonsStatus(); // Set focus on the last focused field this._restoreFieldFocus(); @@ -1952,7 +1953,7 @@ row.querySelector(".zotero-clicky-plus").hidden = true; row.querySelector(".zotero-clicky-minus").hidden = true; row.querySelector(".zotero-clicky-options").hidden = true; - return; + continue; } row.querySelector(".zotero-clicky-plus").disabled = isEmpty || isNextRowUnsavedCreator;