savannabits / filament-flatpickr

Extend your Filament Date-Picking with Flatpickr
MIT License
43 stars 31 forks source link

[Bug]: alfFormat setting being ignored #42

Open PWMatthew opened 9 months ago

PWMatthew commented 9 months ago

What happened?

I'm having an issue where any argument passed to altFormat is ignored for whatever the dateFormat is set to. This occurs with the default dateFormat as well.

How to reproduce the bug

This is how I've implemented it. Flatpickr::make('start') ->enableTime() ->altFormat('m/d/Y h:i K') ->dateFormat('Z'),

Package Version

3.0.1

PHP Version

8.2.8

Laravel Version

10.18.0

Which operating systems does with happen with?

Linux

Notes

No response

quasiperfect commented 9 months ago

@PWMatthew did you by any chance solve this it happens to me too ?

PWMatthew commented 9 months ago

@quasiperfect sorry, nothing yet.

nathanjansen commented 2 months ago

@PWMatthew @quasiperfect you need to also add ->altInput() for it to work.