News for hackers. Stuff that matters.
Re:Why the Gov.uk Design System team changed the input type ... by klingonopera on Thursday February 27, 2020 @01:01PM (#22435828)
Yeah, but in-/decrement and silent dropping would've been a non-issue with type=text.

All I'm saying, they could've used text all this time, and never had all these problems to begin with, with the slight exception of a slightly-clunkier UI.

Well, now they're text anyways, so, yeah.

EDIT: If JS was an option, they could've also used text and then use "<form onsubmit=SanitizeInput()>".

Re:Why the Gov.uk Design System team changed the input type ... by hombre_fatal on Thursday February 27, 2020 @01:41PM (#22436304)
Seems to me like you're missing the point.

They want to give their users a numeric keyboard but without the downsides of a numeric textfield. Your solution seems oblivious to their goals and TFA.

Re:Why the Gov.uk Design System team changed the input type ... by klingonopera on Thursday February 27, 2020 @01:45PM (#22436350)
...at the risk of modified data? With things like credit card numbers?

I think I'm just not chill enough for that.

Re:Why the Gov.uk Design System team changed the input type ... by vertex-four on Thursday February 27, 2020 @01:48PM (#22436385)
Avoiding clunky UI is the raison d'être of gov.uk. You shouldn't have to deal with an awful user experience for things you are legally required to do to go about your life.