diff --git a/lib/src/Components/Auth/LoginPage.tsx b/lib/src/Components/Auth/LoginPage.tsx index b1c8fbb1..8a4f9679 100644 --- a/lib/src/Components/Auth/LoginPage.tsx +++ b/lib/src/Components/Auth/LoginPage.tsx @@ -101,6 +101,11 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) { onChange={(e) => { setEmail(e.target.value) }} + onFocus={(e) => { + setTimeout(() => { + e.target.scrollIntoView({ behavior: 'smooth', block: 'center' }) + }, 300) + }} className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' /> { setPassword(e.target.value) }} + onFocus={(e) => { + setTimeout(() => { + e.target.scrollIntoView({ behavior: 'smooth', block: 'center' }) + }, 300) + }} className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' />