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

@@ -58,7 +58,7 @@ function FilterBody({ columns, drawerState, setDrawerState }) {
} = useForm({
defaultValues: filterData,
resolver: yupResolver(validationSchema),
mode: "onBlur",
mode: "all",
});
const onSubmit = (data) => {

View File

@@ -87,7 +87,7 @@ const FilterDrawer = ({ defaultValues, setFilterData, closeDrawer }) => {
}, {})
)
),
mode: "onBlur",
mode: "all",
});
const onSubmit = (data) => {