From 61db9ff0ccb7950f57d577ebab9edffac440ebe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 10 Apr 2024 12:26:33 +0300 Subject: [PATCH] Advanced search: do not run search on adding condition https://forums.zotero.org/discussion/113522/zotero-7-beta-unresponsive-during-advanced-search --- chrome/content/zotero/elements/zoteroSearch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/zoteroSearch.js b/chrome/content/zotero/elements/zoteroSearch.js index 9da8ec44e4..0cdac238bf 100644 --- a/chrome/content/zotero/elements/zoteroSearch.js +++ b/chrome/content/zotero/elements/zoteroSearch.js @@ -735,7 +735,8 @@ } } - onAddClicked() { + onAddClicked(event) { + event.preventDefault(); if (this.parent){ let ref = this.parent.search.getCondition( this.parent.search.addCondition(