Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(auth): focus agreement confirmation (#17478)

Innei39fa9f9d8ad0
diff --git a/src/features/AuthShell/AuthAgreement.tsx b/src/features/AuthShell/AuthAgreement.tsx
index 72336b30c6f..fb33dabd33d 100644
--- a/src/features/AuthShell/AuthAgreement.tsx
+++ b/src/features/AuthShell/AuthAgreement.tsx
@@ -112,6 +112,7 @@ export const useAuthAgreement = (requestConfirmation?: RequestAgreementConfirmat
confirmModal({
cancelText: t('cancel', { ns: 'common' }),
content: <AgreementText i18nKey={'agreement.confirm.content'} />,
+ okButtonProps: { autoFocus: true },
okText: t('agreement.confirm.ok', { ns: 'auth' }),
onOk: onConfirm,
title: t('agreement.confirm.title', { ns: 'auth' }),