From 26847c672f62de30bd63d9434a00d6c9f8a5e76c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 14 Nov 2022 22:55:17 -0500 Subject: [PATCH] Fix clearing of active quick search after annotation change https://forums.zotero.org/discussion/90727/search-results-disappear --- chrome/content/zotero/xpcom/annotations.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/annotations.js b/chrome/content/zotero/xpcom/annotations.js index 366f436034..db83e4a028 100644 --- a/chrome/content/zotero/xpcom/annotations.js +++ b/chrome/content/zotero/xpcom/annotations.js @@ -231,6 +231,10 @@ Zotero.Annotations = new function () { } } + // Don't try to select annotation, which would clear an active quick search (at least + // until annotations are visible in the items list) + saveOptions.skipSelect = true; + await item.saveTx(saveOptions); return item;