diff --git a/frontend/src/routes/Login.tsx b/frontend/src/routes/Login.tsx index 44767465b..b9d568573 100644 --- a/frontend/src/routes/Login.tsx +++ b/frontend/src/routes/Login.tsx @@ -1,4 +1,4 @@ -import React, { ReactNode, useState } from "react"; +import React, { ReactNode, useId, useState } from "react"; import { useTranslation } from "react-i18next"; import { graphql, usePreloadedQuery } from "react-relay"; import type { PreloadedQuery } from "react-relay"; @@ -126,8 +126,10 @@ const LoginBox: React.FC = () => { const { t, i18n } = useTranslation(); const isDark = useColorScheme().scheme === "dark"; const { register, handleSubmit, watch, formState: { errors } } = useForm(); - const userid = watch("userid", ""); + const userId = watch("userid", ""); const password = watch("password", ""); + const userFieldId = useId(); + const passwordFieldId = useId(); const validation = { required: t("general.form.this-field-is-required") }; @@ -195,14 +197,14 @@ const LoginBox: React.FC = () => { }} >
- -
-