3 ms·
> Why not just use text input? Because on iOS, `type="number"` is the only way to show the number keyboard Actually, this isn't true. It will also show the num
by nmjenkins 11y ago
> Why not just use text input? Because on iOS, `type="number"` is the only way to show the number keyboard
Actually, this isn't true. It will also show the number keyboard on a normal type=text input if you add a pattern="[0-9]*" property.
EDIT: Sorry, misread your comment; you wanted the decimal separator too. I believe that might be impossible to get without type=number.