feat: trigger search input when event handler is added
parent
5e2869b66d
commit
e0eecc3334
|
@ -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 ));
|
||||||
|
|
Loading…
Reference in New Issue