mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-12 10:38:16 -06:00
Addressed PR comments
This commit is contained in:
parent
3ba12a4c4f
commit
2084b20475
@ -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
|
})
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user