Re:You probably don’t need input type=“number”
by efraim on Sunday March 24, 2019 @11:23PM
(#19480104)
> It'll work in Chrome (and other Blink-based browsers), but nothing else.
Then it isn't the right choice.
Re:You probably don’t need input type=“number”
by TurningCanadian on Sunday March 24, 2019 @11:29PM
(#19480125)
It's a progressive enhancement. It doesn't break other browsers.
Re:You probably don’t need input type=“number”
by ceejayoz on Monday March 25, 2019 @08:50AM
(#19482001)
If the widely supported <input type="tel"> or <input type="phone"> offer a better user experience on average for your users, it's not an enhancement at all. Not yet, at least.
Re:You probably don’t need input type=“number”
by benatkin on Sunday March 24, 2019 @11:33PM
(#19480143)
I just took a close look at the caniuse page [1]. It says that inputmode also works in Mobile Safari on iOS 12.2, which is at Beta 6 [2]. Firefox's mobile market share is 0.58%, and the market share for old versions of Mobile Safari is at 2.51% according to the caniuse page so it's probably not worth waiting on Firefox. I think it will be a good choice very soon, maybe in a couple of months, because it's still possible to enter numbers with the regular keyboard.
1: https://caniuse.com/#search=inputmode
2: https://en.wikipedia.org/wiki/IOS (Latest preview in the infobox)
Re:You probably don’t need input type=“number”
by Cthulhu_ on Monday March 25, 2019 @10:23AM
(#19482603)
Nor is input type="number", given how each OS will offer a different on screen keyboard.
Re:You probably don’t need input type=“number”
by dpwm on Sunday March 24, 2019 @11:00PM
(#19480031)
> It'll work in Chrome (and other Blink-based browsers), but nothing else.
What's interesting is it used to be partially supported in Firefox, and has now been put behind about:config [0]. I'm curious as to why, since the MDN docs seems to endorse its use. [1]
[0] https://caniuse.com/#search=inputmode
[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att...
https://html.spec.whatwg.org/multipage/interaction.html#inpu...
It'll work in Chrome (and other Blink-based browsers), but nothing else.