From fca87eff9c89f7d0a8333ed93c541b4c5eae4d53 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 3 Jan 2024 10:33:29 -0800 Subject: [PATCH] Tags box: Add new tag before editor when Enter is pressed Previously, when you clicked the Add button, typed a tag, and pressed Enter, the new tag would be added *after* the now-empty editor field, putting the editor at the top rather than the bottom. --- chrome/content/zotero/elements/tagsBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/tagsBox.js b/chrome/content/zotero/elements/tagsBox.js index 9f519530c4..1545e41404 100644 --- a/chrome/content/zotero/elements/tagsBox.js +++ b/chrome/content/zotero/elements/tagsBox.js @@ -587,7 +587,7 @@ for (let editable of tagEditables) { // Sort tags without colors below tags with colors if (!color && this._tagColors.has(editable.value) - || collation.compareString(1, tagName, editable.value) > 0) { + || editable.value && collation.compareString(1, tagName, editable.value) > 0) { continue; }