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

View File

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