From 451effce9abe5f0902afe9d76cb82474e4a486a7 Mon Sep 17 00:00:00 2001 From: Tina Hammar Date: Wed, 21 Aug 2024 20:01:25 +0200 Subject: [PATCH] debounce AddressSearch --- src/Forms/AddressSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/AddressSearch.php b/src/Forms/AddressSearch.php index ae488d0..9e3012d 100644 --- a/src/Forms/AddressSearch.php +++ b/src/Forms/AddressSearch.php @@ -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