Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Jul 20, 2023
1 parent 4d3ce8d commit 034c67e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/feature/react-hook-form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ export function Form<TInput extends FieldValues>(
{...passThrough}
id={form.id}
onSubmit={(event) => {
event.stopPropagation();
event.preventDefault();

form.handleSubmit(async (values) => {
try {
await handleSubmit(values);
Expand All @@ -64,7 +61,7 @@ export function Form<TInput extends FieldValues>(
}
})(event);
}}
></form>
/>
</FormProvider>
);
}
Expand Down

1 comment on commit 034c67e

@vercel
Copy link

@vercel vercel bot commented on 034c67e Jul 20, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

kitchen-sink – ./

kitchen-sink-trpc.vercel.app
kitchen-sink.trpc.io
kitchen-sink-git-main-trpc.vercel.app

Please sign in to comment.