Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: auto focus password input during login

Abdullah Atta44827a1f1a4f
diff --git a/apps/web/src/views/auth.tsx b/apps/web/src/views/auth.tsx
index 4a15e38d0..551465bc8 100644
--- a/apps/web/src/views/auth.tsx
+++ b/apps/web/src/views/auth.tsx
@@ -323,7 +323,8 @@ function LoginPassword(props: BaseAuthComponentProps<"login:password">) {
type="password"
autoComplete="current-password"
label="Enter password"
- autoFocus={!!form?.password}
+ autoFocus
+ defaultValue={form?.password}
/>
<Button
data-test-id="auth-forgot-password"