3 ms·
> While input type="number triggers numeric keyboards on touchscreens leading to better mobile UX, that can also be accomplished by configuring the pattern attr
by jeswin 8y ago
> While input type="number triggers numeric keyboards on touchscreens leading to better mobile UX, that can also be accomplished by configuring the pattern attribute in a certain way.
Sorry, it's silly to propose features which work only on iOS. Standards-wise, I am not even sure if browsers should be parsing regex to accomplish this goal.
Input type=number can just be about what keypad to show, and shed the up-down arrows for increment/decrement. That's a valid complaint.
- ketzu 8y agoThe linked article in the post especially specifies that it doesn't work well at all and has it's own limitations and recommends using pattern + type=number together and then adds like a ton of workarounds on top of that. The pattern trick article basically explains the exact opposite of what the "you don't need input type number" article says but is cited for something it does not say at all.