react-step-progress icon indicating copy to clipboard operation
react-step-progress copied to clipboard

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

Open Zegoverno opened this issue 4 years ago • 1 comments

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

Zegoverno avatar Feb 24 '21 14:02 Zegoverno

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.

alexiz10 avatar Jun 14 '21 17:06 alexiz10