Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

I would like to submit the form in each step, any idea how to implement? #23

Open
Zegoverno opened this issue Feb 24, 2021 · 1 comment

Comments

@Zegoverno
Copy link

I am also using react-hook-form, anyone has ideas to work with both? Thanks

@alexiz10
Copy link

alexiz10 commented Jun 14, 2021

I don't believe that is customizable out of the box. But you could copy the source code in index.tsx and customize it to your liking. On line 162, there is an onClick handler for the 'Next' Button, so you could start working from there.

EDIT: Just looked a little more into how the component works and I think you could do this in your validators. Maybe validate, if valid, submit data and return true. If not valid return false.

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

No branches or pull requests

2 participants