From f913d0477a650e9a3ae53544fcca0a4451b0eaf8 Mon Sep 17 00:00:00 2001 From: Mathieu Santostefano Date: Sun, 23 Jan 2022 12:35:24 +0100 Subject: [PATCH] Add inputmode doc for NumberType --- reference/forms/types/number.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reference/forms/types/number.rst b/reference/forms/types/number.rst index eda9189f7e3..f953c147dab 100644 --- a/reference/forms/types/number.rst +++ b/reference/forms/types/number.rst @@ -58,6 +58,13 @@ to ``2``, a submitted value of ``20.123`` will be rounded to, for example, .. include:: /reference/forms/types/options/rounding_mode.rst.inc +If set to ``0`` with ``html5`` set to ``false``, the HTML input will be rendered with ``inputmode=numeric``. +However, if set to any value greater than ``0``, with ``html5`` set to ``false``, the HTML input will be rendered with ``inputmode=decimal``. + +Learn more about the ``inputmode`` attribute on `MDN website`_. + +.. include:: https://developer.mozilla.org/fr/docs/Web/HTML/Global_attributes/inputmode + Overridden Options ------------------