From 891524b4ed6753afd42a979b86efc29247d4937c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Mon, 25 Feb 2019 12:20:35 +0200 Subject: [PATCH] Fix selected tags not clearing when switching collections. Closes #1646 --- chrome/content/zotero/zoteroPane.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 3cef7b3a4a..6b884b1397 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1184,12 +1184,7 @@ var ZoteroPane = new function() // Clear quick search and tag selector when switching views document.getElementById('zotero-tb-search').value = ""; - - // XBL functions might not yet be available - var tagSelector = document.getElementById('zotero-tag-selector'); - if (tagSelector.deselectAll) { - tagSelector.deselectAll(); - } + ZoteroPane.tagSelector.clearTagSelection(); // Not necessary with seltype="cell", which calls nsITreeView::isSelectable() /*if (collectionTreeRow.isSeparator()) {