react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

onSubmit type signature - is callback really optional?

Open sKopheK opened this issue 3 years ago • 0 comments

Are you submitting a bug report or a feature request?

bug report

What is the current behavior?

https://final-form.org/docs/react-final-form/types/FormProps#onsubmit

callback?: (errors?: SubmissionErrors) => void,

What is the expected behavior?

callback: (errors?: SubmissionErrors) => void,

I believe callback parameter is passed everytime, it's just matter of function itself if it wants to use it.

sKopheK avatar Aug 09 '22 13:08 sKopheK