Skip to content

Commit

Permalink
Merge pull request #5 from TappNetwork/prevent_google_autocomplete_se…
Browse files Browse the repository at this point in the history
…lect_from_being_dehydrated

Prevent google_autocomplete select from being dehydrated
  • Loading branch information
andreia authored Aug 5, 2024
2 parents 3a9c089 + 8e30c12 commit 7f05f07
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Forms/Components/GoogleAutocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
class GoogleAutocomplete extends Component
{
use CanFormatGoogleParams;
use Concerns\CanAllowHtml;
use Concerns\CanBeNative;
use Concerns\CanBePreloaded;
use Concerns\CanBeSearchable;
use Concerns\HasLoadingMessage;
use Concerns\HasName;
use HasGooglePlaceApi;

Expand Down Expand Up @@ -67,6 +62,7 @@ public function getChildComponents(): array

$components[] = Forms\Components\Select::make('google_autocomplete')
->native(false)
->dehydrated(false)
->allowHtml()
->live()
->searchDebounce($this->getAutocompleteSearchDebounce()) // 2 seconds
Expand Down

0 comments on commit 7f05f07

Please sign in to comment.