savannabits / filament-flatpickr

Extend your Filament Date-Picking with Flatpickr
MIT License
46 stars 35 forks source link

Range picker doesn't seem to work. #11

Closed 0liverdam closed 1 year ago

0liverdam commented 1 year ago

A Carbon\Exceptions\InvalidFormatException is thrown when submitting a range picker. This seems to happen because dehydrateStateUsing() tries to parse the state with Carbon. Since the state contains 2 dates the parsing fails.

The same happens when using default(), but this time afterStateHydrated() fails with the same error.

wit3 commented 1 year ago

Bug confirmed, any ideas to fix?

coolsam726 commented 1 year ago

Fixed in #27