Allow to change current step
VishnuJangid8955 opened this issue · comments
VishnuJangid8955 commented
Is your feature request related to a problem?
If the developer wants to change the current step from 2 to 5 then. They are not able to change that.
Describe the solution you'd like
We can give a setCurrentStep feature so the user can change the current step. the
Describe alternatives you've considered
No response
Additional Context
No response
HiDeoo commented
Thanks for your report.
The Intro.js API provides a goToStep()
function for such use cases. When using this wrapper, you can still access the Intro.js instance by using a ref on either the <Steps />
or <Hints />
components as documented here.
VishnuJangid8955 commented
I'm getting an error when I'm using ref. Please check @HiDeoo
But as of now, I'm using goToStep through introJs.