You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to implement the WizardStep (as seen in the example https://github.com/formium/formik/blob/master/examples/MultistepWizard.js ) and keep having an issue with steps being skipped over when progressing forward. Initially it would only jump over Step2 (clicking Next at the end of Step1 renders Step3), but when I added an API call after Step3, the wizard started jumping that, too. Clicking Back is smooth and does not skip over anything.
The only real difference between my code and the example is that I'm splitting the steps into separate pages, and so I have to pass through the values. <WizardStep onSubmit={() => console.log('submitting PersonalData')} validationSchema={Yup.object({ firstName: Yup.string(), lastName: Yup.string() })} > <PersonalData values={Wizard.initialValues} validation={Wizard.validationSchema} /> </WizardStep>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to implement the WizardStep (as seen in the example https://github.com/formium/formik/blob/master/examples/MultistepWizard.js ) and keep having an issue with steps being skipped over when progressing forward. Initially it would only jump over Step2 (clicking Next at the end of Step1 renders Step3), but when I added an API call after Step3, the wizard started jumping that, too. Clicking Back is smooth and does not skip over anything.
The only real difference between my code and the example is that I'm splitting the steps into separate pages, and so I have to pass through the values.
<WizardStep onSubmit={() => console.log('submitting PersonalData')} validationSchema={Yup.object({ firstName: Yup.string(), lastName: Yup.string() })} > <PersonalData values={Wizard.initialValues} validation={Wizard.validationSchema} /> </WizardStep>Any ideas on what's causing the steps to skip??
Beta Was this translation helpful? Give feedback.
All reactions