You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: react-redux-form.d.ts
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -313,6 +313,11 @@ interface BaseFormProps {
313
313
* * If you want better performance, you can use validateOn="submit", depending on your use-case.
314
314
*/
315
315
validateOn?: 'change'|'submit';
316
+
/**
317
+
* This handler function is called regardless of the validity of the form, and allows you to prevent the default action
318
+
* if using a form action url.
319
+
*/
320
+
onBeforeSubmit?: (event?: Event)=>void;
316
321
/**
317
322
* The handler function called when the form is submitted. This works almost exactly like a normal <form onSubmit={...}> handler, with a few differences:
318
323
* * The submit event's default action is prevented by default, using event.preventDefault().
0 commit comments