We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filament/filament
v3.2.102
v11.0.0
v3.0.0
PHP 8.3.0
A hidden Placeholder inside a Section that has a relationship and has "manual" saving, will send null as a value.
Placeholder
Section
The placeholder to not be sent (even as null)
null
It requires:
dehydrated()
mutateRelationshipDataBeforeSaveUsing(fn () => [])
hidden()
Then in handleRecordUpdate(), the $data object will have something like $data['relationshipName']['placeholderName'] = null
handleRecordUpdate()
$data
$data['relationshipName']['placeholderName'] = null
https://github.com/andy-UKC/filament-issue-placholder-data-sent-on-hidden
"something" => array:5 [▼ "id" => 1 "title" => "something" "created_at" => null "updated_at" => null "should_not_show" => null ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Package
filament/filament
Package Version
v3.2.102
Laravel Version
v11.0.0
Livewire Version
v3.0.0
PHP Version
PHP 8.3.0
Problem description
A hidden
Placeholder
inside aSection
that has a relationship and has "manual" saving, will send null as a value.Expected behavior
The placeholder to not be sent (even as
null
)Steps to reproduce
It requires:
Section
with a relationshipdehydrated()
andmutateRelationshipDataBeforeSaveUsing(fn () => [])
Placeholder
havinghidden()
Then in
handleRecordUpdate()
, the$data
object will have something like$data['relationshipName']['placeholderName'] = null
Reproduction repository (issue will be closed if this is not valid)
https://github.com/andy-UKC/filament-issue-placholder-data-sent-on-hidden
Relevant log output
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: