wagtailstreamforms icon indicating copy to clipboard operation
wagtailstreamforms copied to clipboard

DateField and TimeField type mismatch

Open bennyx93 opened this issue 7 years ago • 1 comments

Expected behaviour

While selecting the DateField to show on the form, the input type should be type=date While selecting the TimeField to show on the form, the input type should be type=time

Actual behaviour

While selecting the DateField to show on the form, the input type should be type=text While selecting the TimeField to show on the form, the input type should be type=text

Steps to reproduce the behaviour

Create a form and put as a field DateField or TimeField

bennyx93 avatar Dec 11 '18 20:12 bennyx93

Hi @bennyx93

Thanks for the report, we just initially aimed to provide what Django does out of the box. While they are def better being type date and time they wont work on all browsers. So would still require overriding totally with a Datepicker or something, if this is a requirement.

We were probably better not adding them in the first place as we can't use them either way :)

Will get them changed as soon as I get a chance.

Ty Stu

stuartaccent avatar Dec 17 '18 14:12 stuartaccent