Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3cef48b

Browse filesBrowse 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
Copy full SHA for 3cef48b

File tree

1 file changed

+7
-0
lines changed
Filter options

1 file changed

+7
-0
lines changed

‎reference/forms/types/number.rst

Copy file name to clipboardExpand all lines: reference/forms/types/number.rst
+7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.