filament
filament copied to clipboard
Datepicker displayFormat() breaks on reactivity trigger
Package
filament/filament
Package Version
latest
Laravel Version
latest
Livewire Version
latest
PHP Version
PHP 8.3
Problem description
When a datepicker uses closure for ->displayFormat(...) and a reactive field triggers change, stuff breaks with error logged as shown in screenshot below:
Expected behavior
Datepicker should evaluate the closure defined in ->displayFormat(...) when a reactive field triggers change.
Steps to reproduce
- Clone the repo https://github.com/damms005/delete-me-quick-create
-
php artisan migrate:fresh --seed - Open project in browser
- Login and go to the
/admin/todosendpoint and click create new todo to bring up the create modal - Toggle the
Is long termradio a few times - See error similar to screenshot above
Reproduction repository (issue will be closed if this is not valid)
https://github.com/damms005/delete-me-quick-create
Relevant log output
No response
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!