Skip to content

Commit

Permalink
fix onPreSubmit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlanz committed Dec 4, 2024
1 parent dc1d196 commit b3d29d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/react-hook-form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Form = forwardRef(function Form<
await onPreSubmit(e)
}

return form.handleSubmit(onSubmit)
return form.handleSubmit(onSubmit)(e)
}
: undefined

Expand Down

0 comments on commit b3d29d3

Please sign in to comment.