inputSeach now updates on clear

This commit is contained in:
Arman committed 2022-04-11 11:58:18 +02:00
1 parent 212a7997c6
commit e631891048
1 file changed
+2 -2
+2 -2
View File
@@ -17,7 +17,7 @@
}
});
const onKeyUp = (event: KeyboardEvent) => {
const onKeyUp = (event: FormEventHandler<HTMLInputElement>) => {
clearTimeout(timer);
timer = setTimeout(() => {
const target = event.target as HTMLInputElement;
@@ -32,5 +32,5 @@
{required}
type="search"
class="input-text"
on:keyup={onKeyUp}
on:change={onKeyUp}
bind:this={element} />