Skip to content

Commit dd1749a

Browse files
authored
Fix typo of HTML5 field type for DateTimeType
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.
1 parent 99d796e commit dd1749a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/options/html5.rst.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**type**: ``boolean`` **default**: ``true``
55

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

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

0 commit comments

Comments
 (0)