4 ms·
TIL about inputmode="number" - this is great! https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode https://developer.mozilla.org/en-US
by mattlondon 5y ago
TIL about inputmode="number" - this is great! https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att...
I wish more sites used appropriate inputmodes - it is often a pain in the backside to enter numeric information on mobile.
- yohannparis 5y agoExactly! This is an amazing attribute.
- brundolf 5y agoMidway through the article I was just thinking, "they should add something to the standard that lets you control which native keyboard is used for a field without all this other semantic baggage" Lo and behold! Probably going to use this at work today :)