Skip to content

Commit f913d04

Browse files
committed
Add inputmode doc for NumberType
1 parent 7d61ea2 commit f913d04

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)