Skip to content

Commit

Permalink
Fix typo of HTML5 field type for DateTimeType
Browse files Browse the repository at this point in the history
Changed the html5 input type for DateTimeType to datetime-local (which is the html5 input type) instead of the datetime input type.

The datetime input type field has been removed from WHATWG HTML (whatwg/html#336)
The datetime-local input type is the type used for rendering DateTimeType when html5 option is set to true.
  • Loading branch information
Levure committed May 29, 2020
1 parent 99d796e commit dd1749a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/forms/types/options/html5.rst.inc
Expand Up @@ -4,7 +4,7 @@
**type**: ``boolean`` **default**: ``true``

If this is set to ``true`` (the default), it'll use the HTML5 type (date, time
or datetime) to render the field. When set to ``false``, it'll use the text type.
or datetime-local) to render the field. When set to ``false``, it'll use the text type.

This is useful when you want to use a custom JavaScript datepicker, which
often requires a text type instead of an HTML5 type.

0 comments on commit dd1749a

Please sign in to comment.