Blog
2024.04.26.1
Link
Jan 14, 2024
<input type="number"> is so bad

<input type="number"> is so bad

On ios tapping the left half of the input will put the cursor at the beginning, which is not what I want because I want the user to easily clear the input and type a new number

I could add a button to clear the input but it’s ugly, and I can’t even use JavaScript to force the cursor to be at the end because <input type="number"> has no mechanism to do so

Don’t you hate it when you have a love-hate relationship with web development