From 3ec1a64a6bc677940c6ad587141a90ce3dc058c2 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:56:14 +0800 Subject: [PATCH] Fix QuickSearchTextbox value property fix: #4057 --- chrome/content/zotero/elements/quickSearchTextbox.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chrome/content/zotero/elements/quickSearchTextbox.js b/chrome/content/zotero/elements/quickSearchTextbox.js index 06badd0489..dfed5ea5f5 100644 --- a/chrome/content/zotero/elements/quickSearchTextbox.js +++ b/chrome/content/zotero/elements/quickSearchTextbox.js @@ -46,6 +46,14 @@ _searchModePopup = null; + get value() { + return this.searchTextbox.value; + } + + set value(val) { + this.searchTextbox.value = val; + } + connectedCallback() { let content = document.importNode(this.content, true); this.append(content);