a11y(signup-page): autofocus first input element (email) (#343)

This commit is contained in:
Yash Joshi 2021-10-22 17:05:44 +05:30 committed by GitHub
parent 73e3e061e0
commit e46ff48b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,7 @@ const Signup = ({ globalLoading, loggedIn }: SignupProps): JSX.Element => {
<Input
placeholder="mike@netflix.com"
type="email"
autoFocus
value={formState.email.value}
onChange={(e): void => updateForm('email', e.target)}
required
@ -94,7 +95,6 @@ const Signup = ({ globalLoading, loggedIn }: SignupProps): JSX.Element => {
<label htmlFor="signupFirstName">First Name</label>
<Input
placeholder="Mike"
autoFocus
value={formState.firstName.value}
onChange={(e): void => updateForm('firstName', e.target)}
required