From 9e2e4bff581fc2a63aa6b790fd4589b1f909d34e Mon Sep 17 00:00:00 2001 From: leeyongjae Date: Wed, 23 Oct 2024 13:33:55 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20focus=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/auth/Login.jsx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/components/auth/Login.jsx b/src/components/auth/Login.jsx index d75d9b6e..66d149ac 100644 --- a/src/components/auth/Login.jsx +++ b/src/components/auth/Login.jsx @@ -71,6 +71,10 @@ export default function Login() { const { promisePost, promisePatch, post } = useAxios(globalLocaleState) + // focus state + const [idFocus, setIdFocus] = useState(false) + const [secFocus, setSecFocus] = useState(false) + // login process const loginProcess = async (e) => { e.preventDefault() @@ -191,7 +195,7 @@ export default function Login() { {getMessage('site.sub_name')}
-
+
{ setUserId(e.target.value) }} + onFocus={() => setIdFocus(true)} + onBlur={() => setIdFocus(false)} />
-
+
{ setPasswordVisible(passwordVisible) }} + onFocus={() => setSecFocus(true)} + onBlur={() => setSecFocus(false)} />
-
+
setSecFocus(true)} + onBlur={() => setSecFocus(false)} />