DateTimePicker fields ->seconds(false) no longer working after update to 3.0.103 & 3.1
But it work in 3.0.102 (downgraded and confirmed it)
Looking at the release notes, I can't tell which PR is it that broke it. Since none of the PRs mention about Dates
https://github.com/filamentphp/filament/releases
The in 3.0.103 DateTimePicker field still show but when submit will get a browser validation error like this
6 Replies
In 3.0.103 the DateTImePIcker shows but when submit will get an error like this. But in 3.0.102 it is working completely fine
This the code, no problem in 3.0.102 but break in 3.0.103 on the frontend
bump
Doesn't work in 3.1.6 too
Found the fix or workaround. Basically you remove ->minutesStep(15)
and now it works again for 3.0.103 & above
my bad. that is not the complete fix. u need to remove ->minDate() as well together with ->seconds(false)
to remove the seconds portion of the datetime field. So just ->seconds(false). Do not add ->minDate() from 3.0.103 onwards
Adding ->maxDate() is okay
then handle ur min date check in ur ->rules() instead
Not sure, i don't really understand that frontend code, but seem like it
If this is a bug in the code, then please report it in GitHub: https://github.com/filamentphp/filament/issues ... with an example repo where it is clearly reproducible.
GitHub
Issues · filamentphp/filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - Issues · filamentphp/filament