Re:Why the Gov.uk Design System team changed the input type ...
by ArchReaper on Thursday February 27, 2020 @02:50PM
(#22437066)
EDIT: removed my inaccurate comment, misread article
[ Parent
| on HN ]
Re:Why the Gov.uk Design System team changed the input type ...
by calibas on Thursday February 27, 2020 @03:13PM
(#22437291)
How is the "tel" type a solution? According to the standard (https://html.spec.whatwg.org/multipage/input.html#telephone-...), it accepts every character except line feeds and carriage returns.
Without any pattern specified, the code you posted will accept emojis as input, it's not a good choice for a numeric only field. It's also intended for phone numbers...
Re:Why the Gov.uk Design System team changed the input type ...
by ArchReaper on Thursday February 27, 2020 @03:17PM
(#22437327)
Woops, for some reason I read the title as "Why the GOV.UK Design System team changed the input type for phone numbers" - removed my comment since it doesn't apply.