-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Since upgrading to version 4, fields configured with ->withFields() are no longer submitted when creating a record. The autocomplete populates the fields correctly in the form, but when clicking "Create", these fields arrive empty in the request.
How to reproduce the bug
- Install package version 4.x in a Filament project
- Add a GoogleAutocomplete field with mapped fields:
GoogleAutocomplete::make('google_search')
->label('Google Maps')
->language('nl')
->countries([
'NL',
])
->withFields([
TextInput::make('name')
->extraInputAttributes([
'data-google-field' => '{name}',
])
->live()
->afterStateUpdated(function (Get $get, Set $set) {
$set('slug', Str::slug($get('name')));
}),
])
- Create a new record and use the Google Maps field to search for a location
- Select a location from the dropdown - observe that the 'name' field populates correctly
- Click "Create" to submit the form
- Inspect the request or check database - the 'name' field mapped in withFields() is empty/null while the 'google_search' field has the correct value
Package Version
v4.0.2
PHP Version
8.4.7
Laravel Version
12.25.0
Which operating systems does with happen with?
Linux
Notes
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working