Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onSubmit type signature - is callback really optional? #1003

Open
sKopheK opened this issue Aug 9, 2022 · 0 comments
Open

onSubmit type signature - is callback really optional? #1003

sKopheK opened this issue Aug 9, 2022 · 0 comments

Comments

@sKopheK
Copy link

sKopheK commented Aug 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant