From cb14564174361c79f8c88f51490284f30cf32352 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 5 Aug 2022 12:10:16 -0400 Subject: [PATCH] fx-compat: Item box: Prevent editor from reopening after close We did need to reset _lastTabIndex as the line removed in fbc25834 did, but only immediately surrounding the saveTx() call. --- chrome/content/zotero/elements/itemBox.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/elements/itemBox.js b/chrome/content/zotero/elements/itemBox.js index 8c2c2e12f4..2b2c36d68b 100644 --- a/chrome/content/zotero/elements/itemBox.js +++ b/chrome/content/zotero/elements/itemBox.js @@ -1997,7 +1997,10 @@ } if (this.saveOnEdit) { + let savedTabIndex = this._lastTabIndex; + this._lastTabIndex = -1; await this.item.saveTx(); + this._lastTabIndex = savedTabIndex; } }