fix(client): pressing Enter on form fields doesn't submit #255
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#255
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
On the universal client's
/loginscreen, pressing Enter while focused on the password (or email) field does not trigger the form's submit. The user has to tap / click the "Sign in" button. Standard browser + native form behaviour expects Enter-on-last-field to submit.The screen uses RN's
<TextInput>directly, which doesn't wire keyboard-Enter to a parent form on its own — neither on RN Web nor native. The fix is to passonSubmitEditing={onSubmit}to the password input (and probablyreturnKeyType="go"/blurOnSubmit={true}for native keyboards). The email input can passonSubmitEditing={() => passwordRef.current?.focus()}to chain the focus.Affected screens beyond
/login— anywhere with a multi-field submit form:/register/server-setup/(app)/account/(app)/profile/(app)/notes/(app)/experienceSource
User-reported (June 2026).
Scope
For each form-bearing screen / sub-form:
onSubmitEditingon the last field to call the submit handler.onSubmitEditingon prior fields to focus the next field via auseRef<TextInput>.returnKeyType="next"on non-terminal fields andreturnKeyType="go"(or"done") on the terminal one.blurOnSubmitconsistently so the keyboard collapses on submit.Single-field forms (e.g. "Add section" on Skills) just need
onSubmitEditing={submit}andreturnKeyType="done".Acceptance criteria
Out of scope
Composes with