F
Filament12mo ago
Mack H

Delay searches

How can I keep this from happening? It's very annoying for some of my users who type slower.
Solution:
https://github.com/filamentphp/filament/blob/b31bc2de29819e6f385b6e27c5fa7b16762ecfd7/packages/tables/resources/views/components/search-field.blade.php#L25 Publish to resources/views/vendor/filament-tables/components/search-field.blade.php and in my case change line to ```php...
GitHub
filament/packages/tables/resources/views/components/search-field.bl...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
Jump to solution
4 Replies
DrByte
DrByte12mo ago
GitHub
filament/packages/tables/resources/views/components/search-field.bl...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
Mack H
Mack HOP12mo ago
@DrByte yeah. I forgot to post the solution i came up with doing that now.
Solution
Mack H
Mack H12mo ago
https://github.com/filamentphp/filament/blob/b31bc2de29819e6f385b6e27c5fa7b16762ecfd7/packages/tables/resources/views/components/search-field.blade.php#L25 Publish to resources/views/vendor/filament-tables/components/search-field.blade.php and in my case change line to
:wire:model.live.debounce.500ms="$wireModel"
:wire:model.live.debounce.500ms="$wireModel"
:wire:model.change="$wireModel"
:wire:model.change="$wireModel"
Our tables have so much data and such long names we need it to react when enter or tab is pressed.
GitHub
filament/packages/tables/resources/views/components/search-field.bl...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
DrByte
DrByte12mo ago
If this PR is accepted, then an upcoming release will give you the ability to configure it directly in your $table: https://github.com/filamentphp/filament/pull/10443
GitHub
Feat: allow configurable table search debounce by awcodes · Pull Re...
Allows setting a custom debounce on table searches. Resolves #7590
Want results from more Discord servers?
Add your server