Skip to content

Could you do this but with React-Hook-Form #1

@roborobs1023

Description

@roborobs1023

I'm trying to do something using your multistepform, react-hook-form, and yup for validation. issue I'm running into is that it's the onSubmit function is never running.

const handleSubmit = useCallback((formValues: Partial<SetupFormData>) => { console.log(currentStepIndex) if (!isLastStep) return next() alert("form submitted") console.log(formValues); }, [])

I don't seem to be getting any data in on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions