diff --git a/src/createSchemaForm.tsx b/src/createSchemaForm.tsx index 3c6a9e2..a0b51da 100644 --- a/src/createSchemaForm.tsx +++ b/src/createSchemaForm.tsx @@ -610,7 +610,7 @@ function useSubmitter({ async (e) => { const errorKeys = Object.keys(e.errors); if (!errorKeys.length) { - await onSubmit(data); + await onSubmit(e.values); return; } for (const key of errorKeys) {