Skip to content

Commit 034c67e

Browse files
committed
fix
1 parent 4d3ce8d commit 034c67e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/feature/react-hook-form/Form.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ export function Form<TInput extends FieldValues>(
5050
{...passThrough}
5151
id={form.id}
5252
onSubmit={(event) => {
53-
event.stopPropagation();
54-
event.preventDefault();
55-
5653
form.handleSubmit(async (values) => {
5754
try {
5855
await handleSubmit(values);
@@ -64,7 +61,7 @@ export function Form<TInput extends FieldValues>(
6461
}
6562
})(event);
6663
}}
67-
></form>
64+
/>
6865
</FormProvider>
6966
);
7067
}

0 commit comments

Comments
 (0)