Skip to content

Commit b2ee1c5

Browse files
Brian Caselclaude
andcommitted
Autofocus email field on login and signup pages
Add the autoFocus prop to the email input on both the login and signup views so the cursor lands in the email field on page load. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a0711f9 commit b2ee1c5

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/javascript/pages/auth/Login.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default function Login() {
4848
id="email"
4949
type="email"
5050
autoComplete="email"
51+
autoFocus
5152
required
5253
value={form.data.email}
5354
onChange={(e) => form.setData("email", e.target.value)}

app/javascript/pages/auth/Signup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default function Signup() {
4545
id="email"
4646
type="email"
4747
autoComplete="email"
48+
autoFocus
4849
required
4950
aria-invalid={!!errors.email}
5051
value={form.data.email}

0 commit comments

Comments
 (0)