Commit bf33513 1 parent b8e79cb commit bf33513 Copy full SHA for bf33513
File tree 1 file changed +0
-6
lines changed
packages/core/src/composables
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,6 @@ export interface UseFormOptions<Values extends FormValues> {
58
58
validateOnMounted ?: boolean ;
59
59
onSubmit : ( values : Values , helper : FormSubmitHelper ) => void | Promise < any > ;
60
60
onInvalid ?: ( errors : FormErrors < Values > ) => void ;
61
- /**
62
- * @deprecated Will be removed in a major release. Please use `onInvalid()` instead.
63
- */
64
- onError ?: ( errors : FormErrors < Values > ) => void ;
65
61
validate ?: ( values : Values ) => void | object | Promise < FormErrors < Values > > ;
66
62
}
67
63
@@ -199,7 +195,6 @@ export function useForm<Values extends FormValues = FormValues>(
199
195
validateMode = 'submit' ,
200
196
reValidateMode = 'change' ,
201
197
onSubmit,
202
- onError,
203
198
onInvalid,
204
199
} = options ;
205
200
@@ -514,7 +509,6 @@ export function useForm<Values extends FormValues = FormValues>(
514
509
} else {
515
510
dispatch ( { type : ACTION_TYPE . SUBMIT_FAILURE } ) ;
516
511
onInvalid ?.( errors ) ;
517
- onError ?.( errors ) ;
518
512
}
519
513
} ) ;
520
514
} ;
You can’t perform that action at this time.
0 commit comments