Skip to content

Commit 390d411

Browse files
committed
add debounce
1 parent f85e76a commit 390d411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Filters/Search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function toField(): SearchField
5252
->setAttributes([
5353
'x-bind:readonly' => 'processing',
5454
'x-on:change.prevent.stop' => '',
55-
'x-on:input' => '($event) => $event.target?.form?.dispatchEvent(new Event(\'change\'))',
55+
'x-on:input.debounce.300ms' => '($event) => $event.target?.form?.dispatchEvent(new Event(\'change\'))',
5656
])
5757
->placeholder(sprintf('%s...', $this->getName()));
5858
}

0 commit comments

Comments
 (0)