Skip to content

Commit

Permalink
debounce AddressSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
tanthammar committed Aug 21, 2024
1 parent ea29006 commit 451effc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/AddressSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static function make(string $jsonColumnName = 'address', bool $replaceFor
->placeholder(trans('filament-extras::misc.nominatim-search-placeholder'))
->searchable()
->ignored()
->live()
->live(debounce: 1000)
->getSearchResultsUsing(fn (string $search) => Nominatim::search($search));

return $replaceFormData
Expand Down

0 comments on commit 451effc

Please sign in to comment.