Quick Search: Don't run on mode switch if field is empty

Fixes #4075
This commit is contained in:
Abe Jellinek 2024-05-01 14:43:21 -04:00
parent adaa61f2cf
commit 729b5a2082

View file

@ -121,7 +121,9 @@
Zotero.Prefs.set("search.quicksearch-mode", mode); Zotero.Prefs.set("search.quicksearch-mode", mode);
this.updateMode(); this.updateMode();
if (this.value) {
this.dispatchEvent(new Event('command')); this.dispatchEvent(new Event('command'));
}
}); });
popup.append(item); popup.append(item);