masakudamatsu / line-height-picker

A front-end web app that helps web designers/developers pick the best line-height value for their websites
https://line-height-picker.vercel.app
MIT License
2 stars 1 forks source link

Focus the input field when the rangeError message is shown #187

Closed masakudamatsu closed 4 years ago

masakudamatsu commented 4 years ago

Currently, when the user enters a value outside 1 to 100, the focus is returned to the input field only when the user clicks the Next button.

The focus should also be returned to the input field when the user clicks somewhere else or hits the space key to focus the button.

masakudamatsu commented 4 years ago

On second thought, this feature will be an annoyance. There may be a reason why the user blurs the focus on the input field. Forcefully returning to focus the input field will annoy the user. So we won't implement this feature.