Skip to content

Commit 2370c68

Browse files
committed
feat: 현재 포커스된 요소의 포커스 제거 기능 추가
1 parent 1a637ef commit 2370c68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pages/Login.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export default function Login() {
4848
const handleLogin = async (e: React.FormEvent<HTMLFormElement>) => {
4949
e.preventDefault();
5050

51+
// 현재 포커스된 요소의 포커스 제거
52+
(document.activeElement as HTMLElement | null)?.blur();
53+
5154
const trimmedId = userId.trim();
5255
const trimmedPassword = userPassword.trim();
5356

0 commit comments

Comments
 (0)