Skip to content

Commit 3cef48b

Browse files
committed
minor #16436 [Form] Add inputmode doc for NumberType (welcoMattic)
This PR was merged into the 6.1 branch. Discussion ---------- [Form] Add inputmode doc for NumberType Ref #16433 The code is already merged in symfony/symfony#45101 Commits ------- f913d04 Add inputmode doc for NumberType
2 parents 1411966 + f913d04 commit 3cef48b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reference/forms/types/number.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ to ``2``, a submitted value of ``20.123`` will be rounded to, for example,
5858

5959
.. include:: /reference/forms/types/options/rounding_mode.rst.inc
6060

61+
If set to ``0`` with ``html5`` set to ``false``, the HTML input will be rendered with ``inputmode=numeric``.
62+
However, if set to any value greater than ``0``, with ``html5`` set to ``false``, the HTML input will be rendered with ``inputmode=decimal``.
63+
64+
Learn more about the ``inputmode`` attribute on `MDN website`_.
65+
66+
.. include:: https://developer.mozilla.org/fr/docs/Web/HTML/Global_attributes/inputmode
67+
6168
Overridden Options
6269
------------------
6370

0 commit comments

Comments
 (0)