From 939fa9cef0a0a4270dbb3113de14f8836e27481e Mon Sep 17 00:00:00 2001 From: EYHN Date: Wed, 10 Apr 2024 06:20:20 +0000 Subject: [PATCH] fix(component): sign up password max length notify (#6467) The input `maxLength` causes password to be automatically truncated without notice user. --- .../src/components/auth-components/password-input/index.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/frontend/component/src/components/auth-components/password-input/index.tsx b/packages/frontend/component/src/components/auth-components/password-input/index.tsx index ff8567fb24..f16063dc83 100644 --- a/packages/frontend/component/src/components/auth-components/password-input/index.tsx +++ b/packages/frontend/component/src/components/auth-components/password-input/index.tsx @@ -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={