From fdddaa77a488fe8c5ee0c14ebc97e9222cf40f30 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Wed, 25 Oct 2023 20:00:26 +0900 Subject: [PATCH] feat: Add autofocus on sign up, sign in form --- src/components/Login/LoginForm.jsx | 1 + src/components/Signup/SignupForm.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/Login/LoginForm.jsx b/src/components/Login/LoginForm.jsx index f5cf787..6b2e8d2 100644 --- a/src/components/Login/LoginForm.jsx +++ b/src/components/Login/LoginForm.jsx @@ -41,6 +41,7 @@ const LoginForm = () => { placeholder="아이디" value={username} onChange={(e) => setUsername(e.target.value)} + autoFocus />
diff --git a/src/components/Signup/SignupForm.jsx b/src/components/Signup/SignupForm.jsx index 3edea56..2e4df90 100644 --- a/src/components/Signup/SignupForm.jsx +++ b/src/components/Signup/SignupForm.jsx @@ -45,6 +45,7 @@ const SignupForm = () => { placeholder="아이디" value={username} onChange={(e) => setUsername(e.target.value)} + autoFocus />