fix(ui): repeated autofocus cloudreve/Cloudreve#2285 (#249)

This commit is contained in:
小白-白 2025-04-23 19:27:10 +08:00 committed by GitHub
parent bcf06d6dfa
commit 9a41ebc845
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,12 +167,11 @@ const SignUp = () => {
onChange={(e) => setEmail(e.target.value)}
icon={<MailOutlined />}
value={email}
autoFocus
autoFocus={true}
/>
</FormControl>
<FormControl variant="standard" margin="normal" required fullWidth>
<OutlineIconTextField
autoFocus={true}
variant={"outlined"}
label={t("login.password")}
inputProps={{
@ -190,13 +189,12 @@ const SignUp = () => {
</FormControl>
<FormControl variant="standard" margin="normal" required fullWidth>
<OutlineIconTextField
autoFocus={true}
variant={"outlined"}
label={t("login.repeatPassword")}
inputProps={{
name: "password",
name: "repeatPassword",
type: "password",
id: "password",
id: "repeatPassword",
required: "true",
minLength: 6,
}}