feat(frontend): keep focus, field errors and unsent answers on the minimal path

This commit is contained in:
shira committed 2026-10-09 21:32:55 +03:00
1 parent d4903a3796
commit c94434cd09
12 files changed
+1174 -18

No files matched your search

@@ -259,6 +259,9 @@ export function InvitationForm({
function submit(event: FormEvent<HTMLFormElement>): void {
event.preventDefault();
// The fields are disabled while the send runs, which would drop the focus
// of a keyboard user; the submit control keeps it instead.
event.currentTarget.querySelector<HTMLButtonElement>('button[type="submit"]')?.focus();
void send();
}