Open LarsFlieger opened 1 year ago
The onSubmit provides onSubmit: (values: Values, formikBag: FormikBag) => void | Promise<any>
onSubmit
onSubmit: (values: Values, formikBag: FormikBag) => void | Promise<any>
Can we get the original button event as a third parameter. This is super useful when dealing with multiple submit buttons or other stuff.
onSubmit: (values: Values, formikBag: FormikBag, event: React.FormEvent<HTMLFormElement>) => void | Promise<any>
A few people require doing this:
Feature request
Current Behavior
The
onSubmit
providesonSubmit: (values: Values, formikBag: FormikBag) => void | Promise<any>
Desired Behavior
Can we get the original button event as a third parameter. This is super useful when dealing with multiple submit buttons or other stuff.
Suggested Solution
onSubmit: (values: Values, formikBag: FormikBag, event: React.FormEvent<HTMLFormElement>) => void | Promise<any>
Who does this impact? Who is this for?
A few people require doing this: