We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08633ab commit 4d88537Copy full SHA for 4d88537
src/wizard.tsx
@@ -17,7 +17,7 @@ const Wizard: React.FC<WizardProps> = React.memo(
17
hasPreviousStep.current = activeStep > 0;
18
19
const goToNextStep = React.useRef((stepIndex?: number) => {
20
- if (hasNextStep.current) {
+ if (hasNextStep.current || stepIndex) {
21
setActiveStep((activeStep) => stepIndex ?? activeStep + 1);
22
}
23
});
0 commit comments