joyride icon indicating copy to clipboard operation
joyride copied to clipboard

Joyride works only after called twice

Open lightmar opened this issue 9 years ago • 7 comments

Hi,

Thank you for this plugin. When I call Joyride to start it, it doesn't show. Only after I call it again it shows. On button click I call:

$("#editor-tour").joyride({ /* Options will go here */ });

What is the problem?

Thanks

lightmar avatar Mar 05 '15 11:03 lightmar

+1

JoeWoodward avatar May 04 '15 23:05 JoeWoodward

+1

EdoardoTona avatar May 07 '15 21:05 EdoardoTona

+1

ziobudda avatar May 21 '15 21:05 ziobudda

+1

@mrsweaters - This is definitely either an issue or misunderstanding in how to use this plugin. Can you please have a look? The library is definitely great, it would be awesome if I didn't have to call $(...).joyride() twice. Just is icky.

sturdynut avatar Jun 26 '15 19:06 sturdynut

If you want the tour to start right away when you initialize joyride, you need to pass in the option autoStart: true.

If you call joyride after you've already passed in options, it is ignoring the options and just calling joyride('restart').

TehShrike avatar Jul 17 '15 15:07 TehShrike

I had the same issue. Like @TehShrike said, adding:

      $("#joyride").joyride({
        autoStart: true
      });

does the trick!

gdejong avatar Dec 03 '15 13:12 gdejong

This works great. Might be wise to add this to the options list on the web page. I was really confused.

zolem avatar Nov 10 '16 19:11 zolem