Skip to content

Commit 5fbdb5e

Browse files
committed
fix: clear handler
1 parent 01c6449 commit 5fbdb5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wizard.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ const Wizard: React.FC<WizardProps> = React.memo(
2424

2525
const goToPreviousStep = React.useRef(() => {
2626
if (hasPreviousStep.current) {
27+
nextStepHandler.current = null;
2728
setActiveStep((activeStep) => activeStep - 1);
2829
}
2930
});
3031

3132
const goToStep = React.useRef((stepIndex: number) => {
3233
if (stepIndex >= 0 && stepIndex < stepCount) {
34+
nextStepHandler.current = null;
3335
setActiveStep(stepIndex);
3436
} else {
3537
if (__DEV__) {

0 commit comments

Comments
 (0)