mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +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"
|
type="email"
|
||||||
autoComplete="email"
|
autoComplete="email"
|
||||||
placeholder={t('login.emailPlaceholder') || ''}
|
placeholder={t('login.emailPlaceholder') || ''}
|
||||||
|
tabIndex={1}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -104,6 +105,7 @@ export default function MailAndPasswordAuth({ isInvite }: MailAndPasswordAuthPro
|
||||||
type={showPassword ? 'text' : 'password'}
|
type={showPassword ? 'text' : 'password'}
|
||||||
autoComplete="current-password"
|
autoComplete="current-password"
|
||||||
placeholder={t('login.passwordPlaceholder') || ''}
|
placeholder={t('login.passwordPlaceholder') || ''}
|
||||||
|
tabIndex={2}
|
||||||
/>
|
/>
|
||||||
<div className="absolute inset-y-0 right-0 flex items-center pr-3">
|
<div className="absolute inset-y-0 right-0 flex items-center pr-3">
|
||||||
<Button
|
<Button
|
||||||
|
@ -119,7 +121,7 @@ export default function MailAndPasswordAuth({ isInvite }: MailAndPasswordAuthPro
|
||||||
|
|
||||||
<div className='mb-2'>
|
<div className='mb-2'>
|
||||||
<Button
|
<Button
|
||||||
tabIndex={0}
|
tabIndex={2}
|
||||||
variant='primary'
|
variant='primary'
|
||||||
onClick={handleEmailPasswordLogin}
|
onClick={handleEmailPasswordLogin}
|
||||||
disabled={isLoading}
|
disabled={isLoading}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user