Switch to <input type="number">

@asadiqbal08 this is what I'm suggesting for #4921