From 365e97ba1e723b7c0b6522a85f0e7ac5d6975755 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Sun, 14 Jan 2024 18:17:01 +0800 Subject: [PATCH] Fix quick search does not re-run when changing mode --- chrome/content/zotero/elements/quickSearchTextbox.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/zotero/elements/quickSearchTextbox.js b/chrome/content/zotero/elements/quickSearchTextbox.js index 37509798e4..51386248b5 100644 --- a/chrome/content/zotero/elements/quickSearchTextbox.js +++ b/chrome/content/zotero/elements/quickSearchTextbox.js @@ -110,9 +110,7 @@ Zotero.Prefs.set("search.quicksearch-mode", mode); this.updateMode(); - if (this.value) { - this.dispatchEvent(new Event('command')); - } + this.dispatchEvent(new Event('command')); }); popup.append(item);