From e0eecc3334cddc6bddabd69c5985db2304e2d634 Mon Sep 17 00:00:00 2001 From: "Alex J. Best" Date: Wed, 24 May 2023 07:19:15 -0600 Subject: [PATCH] feat: trigger search input when event handler is added --- static/search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/search.js b/static/search.js index 1409e00..7971a82 100644 --- a/static/search.js +++ b/static/search.js @@ -147,7 +147,8 @@ DeclarationDataCenter.init() checkbox.addEventListener("input", ev => SEARCH_PAGE_INPUT.dispatchEvent(new Event("input"))) ); SEARCH_PAGE_INPUT.dispatchEvent(new Event("input")) - } + }; + SEARCH_INPUT.dispatchEvent(new Event("input")) }) .catch(e => { SEARCH_INPUT.addEventListener("input", ev => handleSearch(null, e, ev, ac_results, AC_MAX_RESULTS,true ));