LinkedInAttic / hopscotch

A framework to make it easy for developers to add product tours to their pages.
Apache License 2.0
4.2k stars 666 forks source link

With turbolinks-classic, step doesn't advance through onNext #345

Closed brendon closed 5 years ago

brendon commented 6 years ago

I'm having a bit of trouble advancing to the next step in a onNext callback in multipage tours. I've changing page like so:

    multipage: true
    onNext: ->
      Turbolinks.visit '/users'

Unfortunately I think this may be short-circuiting the changeStepCb code so that the step is never incremented (among other things). This means when I get to the new page, the same step shows again.

It all works well when I use window.location. I've tried advancing the step manually in the callback but that doesn't work either. Any pointers? :)