浏览代码

Fix: use correct maxLength prop for verification code input (#26244)

tags/1.9.1
Yongtao Huang 1 个月前
父节点
当前提交
a5387b304e
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      web/app/signup/check-code/page.tsx
  2. 1
    1
      web/app/signup/components/input-mail.tsx

+ 1
- 1
web/app/signup/check-code/page.tsx 查看文件



<form action=""> <form action="">
<label htmlFor="code" className='system-md-semibold mb-1 text-text-secondary'>{t('login.checkCode.verificationCode')}</label> <label htmlFor="code" className='system-md-semibold mb-1 text-text-secondary'>{t('login.checkCode.verificationCode')}</label>
<Input value={code} onChange={e => setVerifyCode(e.target.value)} max-length={6} className='mt-1' placeholder={t('login.checkCode.verificationCodePlaceholder') as string} />
<Input value={code} onChange={e => setVerifyCode(e.target.value)} maxLength={6} className='mt-1' placeholder={t('login.checkCode.verificationCodePlaceholder') as string} />
<Button loading={loading} disabled={loading} className='my-3 w-full' variant='primary' onClick={verify}>{t('login.checkCode.verify')}</Button> <Button loading={loading} disabled={loading} className='my-3 w-full' variant='primary' onClick={verify}>{t('login.checkCode.verify')}</Button>
<Countdown onResend={resendCode} /> <Countdown onResend={resendCode} />
</form> </form>

+ 1
- 1
web/app/signup/components/input-mail.tsx 查看文件

'use client' 'use client'
import { noop } from 'lodash'
import { noop } from 'lodash-es'
import Input from '@/app/components/base/input' import Input from '@/app/components/base/input'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import { useContext } from 'use-context-selector' import { useContext } from 'use-context-selector'

正在加载...
取消
保存