Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form input fields should autofocus #102

Open
perennialAutodidact opened this issue Nov 3, 2024 · 0 comments · May be fixed by #109
Open

Form input fields should autofocus #102

perennialAutodidact opened this issue Nov 3, 2024 · 0 comments · May be fixed by #109
Assignees
Labels
frontend Issue pertains to the frontend client setup form Issue pertains to the game setup form

Comments

@perennialAutodidact
Copy link
Owner

perennialAutodidact commented Nov 3, 2024

The form input fields should autofocus so they can be typed in immediately when each form step loads. This will allow the form to be navigable completely by keyboard. This can be achieved by adding the autoFocus prop on the input fields.

This should apply to the slider as well.

If, for some reason, the autoFocus attribute doesn't work on the elements, they can be given refs and a useEffect can be used to set the element's focus with ref.current.focus().

@perennialAutodidact perennialAutodidact added the frontend Issue pertains to the frontend client label Nov 3, 2024
@perennialAutodidact perennialAutodidact added the setup form Issue pertains to the game setup form label Nov 3, 2024
@russfraze russfraze linked a pull request Dec 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Issue pertains to the frontend client setup form Issue pertains to the game setup form
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants