doc: no values param in onFormSubmit callback if not return in resolver. Fixes #7031

pull/6454/merge
Mert Sincan 2025-01-13 10:31:42 +00:00
parent 3e7739b1e7
commit 7e4e89f11e
3 changed files with 9 additions and 0 deletions

View File

@ -95,6 +95,7 @@ export default {
} }
return { return {
values, // (Optional) Used to pass current form values to submit event.
errors errors
}; };
}, },
@ -140,6 +141,7 @@ const resolver = ({ values }) => {
} }
return { return {
values, // (Optional) Used to pass current form values to submit event.
errors errors
}; };
}; };
@ -167,6 +169,7 @@ const onFormSubmit = ({ valid }) => {
} }
return { return {
values, // (Optional) Used to pass current form values to submit event.
errors errors
}; };
}, },

View File

@ -175,6 +175,7 @@ export default {
} }
return { return {
values,
errors errors
}; };
}; };
@ -292,6 +293,7 @@ const changeResolver = (schema) => {
} }
return { return {
values,
errors errors
}; };
}; };
@ -343,6 +345,7 @@ const onFormSubmit = ({ valid }) => {
} }
return { return {
values,
errors errors
}; };
}; };

View File

@ -74,6 +74,7 @@ export default {
} }
return { return {
values,
errors errors
}; };
}, },
@ -125,6 +126,7 @@ const resolver = ({ values }) => {
} }
return { return {
values,
errors errors
}; };
}; };
@ -152,6 +154,7 @@ const onFormSubmit = ({ valid }) => {
} }
return { return {
values,
errors errors
}; };
}, },