Skip to content

Commit 0e0265e

Browse files
committed
Reword
1 parent 3cef48b commit 0e0265e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

reference/forms/types/number.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ 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``.
61+
When the ``html5`` option is set to ``false``, the ``<input>`` element will
62+
include an `inputmode HTML attribute`_ which depends on the value of this option.
63+
If the ``scale`` value is ``0``, ``inputmode`` will be ``numeric``; if ``scale``
64+
is set to any value greater than ``0``, ``inputmode`` will be ``decimal``.
6365

64-
Learn more about the ``inputmode`` attribute on `MDN website`_.
66+
.. versionadded:: 6.1
6567

66-
.. include:: https://developer.mozilla.org/fr/docs/Web/HTML/Global_attributes/inputmode
68+
The automatic addition of the ``inputmode`` attribute was introduced in Symfony 6.1.
6769

6870
Overridden Options
6971
------------------
@@ -112,3 +114,5 @@ The default value is ``''`` (the empty string).
112114
.. include:: /reference/forms/types/options/required.rst.inc
113115

114116
.. include:: /reference/forms/types/options/row_attr.rst.inc
117+
118+
.. _`inputmode HTML attribute`: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode

0 commit comments

Comments
 (0)