From b3d29d3d1532225275200c992b354c2233152486 Mon Sep 17 00:00:00 2001 From: Alex Lanz Date: Wed, 4 Dec 2024 09:20:59 +0100 Subject: [PATCH] fix onPreSubmit changes --- src/components/react-hook-form/Form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/react-hook-form/Form.tsx b/src/components/react-hook-form/Form.tsx index 21ca4d70..97e95256 100644 --- a/src/components/react-hook-form/Form.tsx +++ b/src/components/react-hook-form/Form.tsx @@ -47,7 +47,7 @@ export const Form = forwardRef(function Form< await onPreSubmit(e) } - return form.handleSubmit(onSubmit) + return form.handleSubmit(onSubmit)(e) } : undefined