Skip to content

The controlled demo is too complicated for imbeciles like me. #663

Closed Answered by gilbarbara
jimmythecode asked this question in Q&A
Discussion options

You must be logged in to vote

hey @jimmythecode

Do you really need a controlled tour? Most cases don't need that...

When I click 'next' the tooltip changes to a beacon, but I don't want it to and I don't understand why this happens on this step and not subsequent ones?
It also skips Step2 (stepIndex 1). Why does it do this and how do I stop it?

Not sure why it was happening (probably because the Joyride component was rendered again between state changes).
But the callback was called twice with the type EVENTS.STEP_AFTER and index 0 so it increased the stepIndex twice. 0 -> 2

Change the conditional to:
else if (data.index === stepIndexState && (type === EVENTS.STEP_AFTER || type === EVENTS.TARGET_NOT_FOUND))

The beac…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jimmythecode
Comment options

Answer selected by gilbarbara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants