fix form validation mode

This commit is contained in:
Ildar Kamalov
2025-01-24 14:49:12 +03:00
parent 254b25a026
commit 681cdb023e
27 changed files with 178 additions and 83 deletions

View File

@@ -67,7 +67,7 @@ export const MobileConfigForm = ({ initialValues }: Props) => {
control,
formState: { isValid },
} = useForm<FormValues>({
mode: 'onChange',
mode: 'onBlur',
defaultValues: {
...defaultFormValues,
...initialValues,