FilamentF
Filament3y ago
Jeff

TimePicker - Prevent end before start with JS timepicker

When using the TimePicker, the user shouldn't be able to choose an END time before the START time for an event. I found another thread by @Spârky that gave a great solution, but doesn't work with the JS version (->native(false)). I've played with it but can't find the magic formula to get the Carbon instances to compare properly.

Has anyone got a solution?
Solution
Thanks for jumping in though! Maybe the casts are important in the timepicker too!
Was this page helpful?