mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
feat:support use tab change focus between inputs at login page
This commit is contained in:
parent
badcf56171
commit
c5fa49a6c0
|
@ -81,6 +81,7 @@ export default function MailAndPasswordAuth({ isInvite }: MailAndPasswordAuthPro
|
|||
type="email"
|
||||
autoComplete="email"
|
||||
placeholder={t('login.emailPlaceholder') || ''}
|
||||
tabIndex={1}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -104,6 +105,7 @@ export default function MailAndPasswordAuth({ isInvite }: MailAndPasswordAuthPro
|
|||
type={showPassword ? 'text' : 'password'}
|
||||
autoComplete="current-password"
|
||||
placeholder={t('login.passwordPlaceholder') || ''}
|
||||
tabIndex={2}
|
||||
/>
|
||||
<div className="absolute inset-y-0 right-0 flex items-center pr-3">
|
||||
<Button
|
||||
|
@ -119,7 +121,7 @@ export default function MailAndPasswordAuth({ isInvite }: MailAndPasswordAuthPro
|
|||
|
||||
<div className='mb-2'>
|
||||
<Button
|
||||
tabIndex={0}
|
||||
tabIndex={2}
|
||||
variant='primary'
|
||||
onClick={handleEmailPasswordLogin}
|
||||
disabled={isLoading}
|
||||
|
|
Loading…
Reference in New Issue
Block a user