area17 / twill

Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/cnWk7EFv8R.
https://twillcms.com
Apache License 2.0
3.71k stars 567 forks source link

Time picker js error when `allowInput` is true #2557

Closed galingong closed 3 months ago

galingong commented 5 months ago

Description

When setting allowInput option on a time_picker field true, I get Error: Invalid date provided: {value on field in hh:mm format}

Steps to reproduce

Set allowInput true on a time_picker as described above. Set a value on the field.

Expected result

Field accepting the value set on it.

Actual result

The field will be set to 12:00 and a js error in the console appears.

Versions

Twill version: 3.2.0 Laravel version: 10.48.3