From 6a39980a97bfc5545f9cae24a1a7bd6c6559d7ba Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 9 Feb 2024 12:21:56 -0500 Subject: [PATCH] Save Abstract edits when switching items Since itemPane.js sets mode before item, the editable-text's value would get reset before save() ran. Not touching the header since we're replacing that with an item-box field (which does not have this bug) soon anyway. Fixes #3679 --- chrome/content/zotero/elements/abstractBox.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/elements/abstractBox.js b/chrome/content/zotero/elements/abstractBox.js index 97ad4962b2..b4c7a8c57d 100644 --- a/chrome/content/zotero/elements/abstractBox.js +++ b/chrome/content/zotero/elements/abstractBox.js @@ -62,6 +62,10 @@ } set mode(mode) { + if (this._mode === mode) { + return; + } + this.blurOpenField(); this._mode = mode; this.render(); }