File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 44 "description" : " React wizard (stepper) builder without the hassle, powered by hooks." ,
55 "homepage" : " https://github.com/devrnt/react-use-wizard#readme" ,
66 "module" : " dist/react-use-wizard.esm.js" ,
7- "version" : " 2.1.0" ,
7+ "version" : " 2.1.1- 0" ,
88 "license" : " MIT" ,
99 "main" : " dist/index.js" ,
1010 "typings" : " dist/index.d.ts" ,
Original file line number Diff line number Diff 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__ ) {
You can’t perform that action at this time.
0 commit comments