Closed mvorisek closed 4 months ago
UI numeric values/types are rendered using UI persistence and can contain non-numeric characters like space, comma.
Currently, such correctly formatted UI values, are considered as bad, example:
can be reproduced on demos/form-control/multiline.php demo by writing 1 000 in "Qty" number input.
demos/form-control/multiline.php
1 000
The visual style is controlled by https://developer.mozilla.org/en-US/docs/Web/CSS/:invalid CSS presudo class which is set by https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation . In short, input type=number cannot be used for anything else than \d+ value, thus we need to set type to be different than number or do not set it at all.
type=number
\d+
type
number
UI numeric values/types are rendered using UI persistence and can contain non-numeric characters like space, comma.
repro
Currently, such correctly formatted UI values, are considered as bad, example:
can be reproduced on
demos/form-control/multiline.php
demo by writing1 000
in "Qty" number input.solution
The visual style is controlled by https://developer.mozilla.org/en-US/docs/Web/CSS/:invalid CSS presudo class which is set by https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation . In short, input
type=number
cannot be used for anything else than\d+
value, thus we need to settype
to be different thannumber
or do not set it at all.