Skip to content

Commit 3eb5d73

Browse files
committed
minor #13730 Fix typo of HTML5 field type for DateTimeType (Levure)
This PR was merged into the 3.4 branch. Discussion ---------- 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. Commits ------- dd1749a Fix typo of HTML5 field type for DateTimeType
2 parents 11d1135 + dd1749a commit 3eb5d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)