From c81391b5b675dc740b4a535d7047d375c9ebb3d2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 14 Apr 2023 15:57:03 -0400 Subject: [PATCH] Fix Collection condition in Advanced Search (regression from 6b819e259c) The shadow root here is from xul:menulist, not one of our CEs. --- chrome/content/zotero/elements/zoteroSearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/zoteroSearch.js b/chrome/content/zotero/elements/zoteroSearch.js index 819aaf04d2..674ba729b3 100644 --- a/chrome/content/zotero/elements/zoteroSearch.js +++ b/chrome/content/zotero/elements/zoteroSearch.js @@ -562,7 +562,7 @@ valueMenu.value = this.value; } - valueMenu.querySelector('#label-box > image').style.maxHeight = '16px'; + valueMenu.shadowRoot.querySelector('#label-box > image').style.maxHeight = '16px'; } initWithParentAndCondition(parent, condition) {