fix(component): sign up password max length notify (#6467)

The input `maxLength` causes password to be automatically truncated without notice user.
This commit is contained in:
EYHN 2024-04-10 06:20:20 +00:00
parent a83f49e700
commit 939fa9cef0
No known key found for this signature in database
GPG Key ID: 46C9E26A75AB276C

View File

@ -151,8 +151,6 @@ export const PasswordInput: FC<
className={styles.input}
type="password"
size="extraLarge"
minLength={passwordLimits.minLength}
maxLength={passwordLimits.maxLength}
style={{ marginBottom: 20 }}
placeholder={t['com.affine.auth.set.password.placeholder']({
min: String(passwordLimits.minLength),
@ -180,8 +178,6 @@ export const PasswordInput: FC<
className={styles.input}
type="password"
size="extraLarge"
minLength={passwordLimits.minLength}
maxLength={passwordLimits.maxLength}
placeholder={t['com.affine.auth.set.password.placeholder.confirm']()}
onChange={onConfirmPasswordChange}
endFix={