From b0a4743870aca0eb9e33c4634ad1c8cdcac34984 Mon Sep 17 00:00:00 2001 From: VanyaMate Date: Mon, 8 Apr 2024 08:14:07 +0300 Subject: [PATCH] =?UTF-8?q?fix=20onSubmitHandler.=20=D1=82=D0=B5=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D1=8C=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=BE=D1=81=D1=82=D0=B0=D0=BD=D0=B0=D0=B2=D0=BB=D0=B8=D0=B2?= =?UTF-8?q?=D0=B0=D0=B5=D1=82=D1=81=D1=8F.=20=D0=B5=D1=81=D0=BB=D0=B8=20?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D1=8C=20=D0=BD=D0=B5=20=D0=B2=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=B4=D0=BD=D0=BE=D0=B5=20=D0=BF=D0=BE=D0=BB=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/shared/ui/forms/hooks/useForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/shared/ui/forms/hooks/useForm.ts b/src/components/shared/ui/forms/hooks/useForm.ts index a5baa569..bb35bc63 100644 --- a/src/components/shared/ui/forms/hooks/useForm.ts +++ b/src/components/shared/ui/forms/hooks/useForm.ts @@ -31,7 +31,7 @@ export const useForm = function (props: UseFormProps< const input = props.inputs[i]; if (!input.isValid) { input.inputRef.current?.focus(); - break; + return; } data[input.name] = input.value.current; }