From 8a201022c02d862f367271dfdd87ff5e99d43824 Mon Sep 17 00:00:00 2001 From: Devin Foley Date: Sat, 14 Mar 2026 00:17:39 -0700 Subject: [PATCH 1/2] Fix Enter key not submitting login form The submit button's `disabled` attribute prevented browsers from firing implicit form submission (Enter key) per HTML spec. Move the canSubmit guard into the onSubmit handler and use aria-disabled + visual styles instead, so Enter works when fields are filled. Co-Authored-By: Paperclip --- ui/src/pages/Auth.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ui/src/pages/Auth.tsx b/ui/src/pages/Auth.tsx index e562c7e8..b69f9a13 100644 --- a/ui/src/pages/Auth.tsx +++ b/ui/src/pages/Auth.tsx @@ -57,8 +57,8 @@ export function AuthPage() { const canSubmit = email.trim().length > 0 && - password.trim().length >= 8 && - (mode === "sign_in" || name.trim().length > 0); + password.trim().length > 0 && + (mode === "sign_in" || (name.trim().length > 0 && password.trim().length >= 8)); if (isSessionLoading) { return ( @@ -91,6 +91,7 @@ export function AuthPage() { className="mt-6 space-y-4" onSubmit={(event) => { event.preventDefault(); + if (!canSubmit || mutation.isPending) return; mutation.mutate(); }} > @@ -128,7 +129,12 @@ export function AuthPage() { /> {error &&

{error}

} -