From 342aefd417b1a2f6d4a3641dd64f2e8baafb664d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20N=C3=B6ssing?= Date: Wed, 3 Apr 2024 16:56:27 +0200 Subject: [PATCH] change on submit in form to fix lint error --- src/components/react-hook-form/Form.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/react-hook-form/Form.tsx b/src/components/react-hook-form/Form.tsx index 290fe8ab..76038dd9 100644 --- a/src/components/react-hook-form/Form.tsx +++ b/src/components/react-hook-form/Form.tsx @@ -44,7 +44,9 @@ export const Form = forwardRef(function Form<
{ + onSubmit ? void form.handleSubmit(onSubmit)(event) : undefined + }} > {children}