Skip to content

Commit 18ebf08

Browse files
MACscrclaude
andcommitted
Fix undefined $path error in geocomplete setStateUsing
Changed console.log($path, $state) to console.log(path, state) to fix ReferenceError when selecting autocomplete addresses. $path and $state are Alpine.js syntax but these are plain JS function parameters. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 586e57d commit 18ebf08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/fields/filament-google-geocomplete.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class="w-full"
4242
x-load-src="{{ \Filament\Support\Facades\FilamentAsset::getAlpineComponentSrc('filament-google-maps-geocomplete', 'cheesegrits/filament-google-maps') }}"
4343
x-data="filamentGoogleGeocomplete({
4444
setStateUsing: async (path, state) => {
45-
console.log($path,$state);
45+
console.log(path, state);
4646
return await $wire.set(path, state)
4747
},
4848
reverseGeocodeUsing: (results) => {

0 commit comments

Comments
 (0)