filament
filament copied to clipboard
Hidden placeholder data sent in dehydrated section
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 a Section 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:
-
Sectionwith a relationship - Manually saving that data using
dehydrated()andmutateRelationshipDataBeforeSaveUsing(fn () => []) - the
Placeholderhavinghidden()
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
"something" => array:5 [▼
"id" => 1
"title" => "something"
"created_at" => null
"updated_at" => null
"should_not_show" => null
]
Donate 💰 to fund this issue
- You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
- 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
- Thank you in advance for helping us make maintenance sustainable!