React-joyride: stepIndex doesn't appear to work

Created on 22 Apr 2017  路  8Comments  路  Source: gilbarbara/react-joyride

Setting stepIndex to, say, 3 in the demo doesn't seem to affect the starting step. Checking react devtools show that Joyride recognizes its props.stepIndex as 3, but seems to have no effect.

V2

Most helpful comment

There is a check in componentWillReceiveProps, but in componentDidMount start method is called without the stepIndex parameter

Maybe this issue should be left opened until it's fixed or implemented in v2

All 8 comments

+1

Sorry, but I'm not sure exactly what you're saying. Can you give a bit of an example with some code?

@IanVS - he says that the stepIndex parameter isn't working - setting it to whatever value does not have effect.

yup seeing the same problem

This will be fixed in V2 with controlled/uncontrolled tours

There is a check in componentWillReceiveProps, but in componentDidMount start method is called without the stepIndex parameter

Maybe this issue should be left opened until it's fixed or implemented in v2

It seems that stepIndex use is fixed by changing && to || at line 176 and commenting out line 222, but this may break other scenarios

On clicking next button, the toggleTooltip method is called twice, once with next action and second time with jump action. Executing the later one doesn't open tooltip.

In V2 the stepIndex parameter is ignored on tour start. Is there a way to start on a specific step without patching the src?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alessapm picture alessapm  路  5Comments

kAleksei picture kAleksei  路  5Comments

pokonski picture pokonski  路  3Comments

BlockChange picture BlockChange  路  5Comments

willgriff0826 picture willgriff0826  路  6Comments