Long-Blade
DateTimePicker time selection jumping back to 0
Hey @wazkaz i had the same problem, so i figured it out!
The problem is with the javascript that filament uses so when you add a minDate(..) with time in it then it makes it available to the javascript but without pre-feeling the field, so then you are trying to increment from 0 to 1 it goes back to one because it validates to false and is clearing the state to 0:0:0. This is kinda right btw .. i know don't ask ..
Anyway a solution for anyone reading this is :
1. Pass only DATE in a datetime field for minDate() validation The problem with this is that is not validating the time any more (by it self)
2. Use afterOrEqual(..) in compination with above in order to validate a full datetime string. (if you just use this tho will be also fine but the dates will not be grayed out)
I hope i helped anyone from loosing 6+hrs from his life to solve this
14 replies