change mode react hook form to "all"

This commit is contained in:
AmirHossein Mahmoodi
2025-04-15 13:24:32 +03:30
parent bb33e055a9
commit bb49b47d7c
40 changed files with 41 additions and 41 deletions

View File

@@ -42,7 +42,7 @@ const RegisterActionContent = ({ setOpen, defaultValues, onBaseSubmit }) => {
} = useForm({
defaultValues,
resolver: yupResolver(validationSchema),
mode: "onChange",
mode: "all",
});
const onSubmit = async (data) => {

View File

@@ -28,7 +28,7 @@ const ReferContent = ({ rowId, mutate, setOpenReferDialog }) => {
description: "",
},
resolver: yupResolver(validationSchema),
mode: "onBlur",
mode: "all",
});
const onSubmit = async (data) => {

View File

@@ -22,7 +22,7 @@ const RejectContent = ({ rowId, mutate, setOpenRejectDialog }) => {
description: "",
},
resolver: yupResolver(validationSchema),
mode: "onBlur",
mode: "all",
});
const onSubmit = async (data) => {