From c16a2d4b0563714932988be76828974c61e43cb5 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 1 Dec 2023 13:55:54 -0500 Subject: [PATCH] Resize editable-text after Esc pressed --- chrome/content/zotero/elements/editableText.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/editableText.js b/chrome/content/zotero/elements/editableText.js index 219b0fd1ae..54e99dc324 100644 --- a/chrome/content/zotero/elements/editableText.js +++ b/chrome/content/zotero/elements/editableText.js @@ -165,7 +165,7 @@ } } else if (event.key === 'Escape') { - this._input.value = this._input.dataset.initialValue; + this._input.value = this.value = this._input.dataset.initialValue; this._input.blur(); } });