Addressed PR comments

This commit is contained in:
Julio-Oliveira-Encora 2024-05-20 16:18:57 -03:00
parent 3ba12a4c4f
commit 2084b20475

View File

@ -62,14 +62,13 @@ export function initQuickSearch(): void {
if (isTruthy(clearbtn)) { if (isTruthy(clearbtn)) {
clearbtn.addEventListener("click", async () => { clearbtn.addEventListener("click", async () => {
const search = new Event('search'); const search = new Event('search');
quicksearch.value = ''; quicksearch.value = '';
await new Promise(f => setTimeout(f, 100)); await new Promise(f => setTimeout(f, 100));
quicksearch.dispatchEvent(search); quicksearch.dispatchEvent(search);
}, }, {
{ passive: true
passive: true })
})
} }
} }
} }