mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-03 07:02:50 +03:00
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:
parent
a83f49e700
commit
939fa9cef0
@ -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={
|
||||
|
Loading…
Reference in New Issue
Block a user