Skip to content

Commit

Permalink
chore(form-web): add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
artalar committed Jul 7, 2023
1 parent f404abf commit 1d379b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/form-web/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ export const reatomHTMLForm = ({
}

if (htmlFieldAtom?.elementAtom) {
ctx.get(htmlFieldAtom.elementAtom)?.focus()
// TODO
// if(options.shouldFocusOnError) ctx.get(htmlFieldAtom.elementAtom)?.focus()
}

onSubmitError?.(ctx)
Expand Down

1 comment on commit 1d379b1

@vercel
Copy link

@vercel vercel bot commented on 1d379b1 Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.