Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit e8b85a0

Browse files
committed
Adding second arg to onSubmit for <Form>
1 parent 91d6736 commit e8b85a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-redux-form.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ interface BaseFormProps {
323323
* * You can do anything in onSubmit; including firing off custom actions or handling (async) validation yourself.
324324
* @param formModelData The form's model data
325325
*/
326-
onSubmit?: (formModelData: any) => void;
326+
onSubmit?: (formModelData: any, event?: Event) => void;
327327
/**
328328
* The handler function called when the form fails to submit. This happens when:
329329
* * attempting to submit an invalid form

0 commit comments

Comments
 (0)