filament icon indicating copy to clipboard operation
filament copied to clipboard

Datepicker displayFormat() breaks on reactivity trigger

Open damms005 opened this issue 1 year ago • 0 comments

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:

Screenshot 2024-07-13 at 10 24 38 AM

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/todos endpoint and click create new todo to bring up the create modal
  • Toggle the Is long term radio 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!
Fund with Polar

damms005 avatar Jul 13 '24 09:07 damms005