feat: trigger search input when event handler is added

main
Alex J. Best 2023-05-24 07:19:15 -06:00 committed by Henrik Böving
parent 5e2869b66d
commit e0eecc3334
1 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,8 @@ DeclarationDataCenter.init()
checkbox.addEventListener("input", ev => SEARCH_PAGE_INPUT.dispatchEvent(new Event("input"))) checkbox.addEventListener("input", ev => SEARCH_PAGE_INPUT.dispatchEvent(new Event("input")))
); );
SEARCH_PAGE_INPUT.dispatchEvent(new Event("input")) SEARCH_PAGE_INPUT.dispatchEvent(new Event("input"))
} };
SEARCH_INPUT.dispatchEvent(new Event("input"))
}) })
.catch(e => { .catch(e => {
SEARCH_INPUT.addEventListener("input", ev => handleSearch(null, e, ev, ac_results, AC_MAX_RESULTS,true )); SEARCH_INPUT.addEventListener("input", ev => handleSearch(null, e, ev, ac_results, AC_MAX_RESULTS,true ));