bootstrap-tour icon indicating copy to clipboard operation
bootstrap-tour copied to clipboard

onShown not firing

Open maxmann74 opened this issue 6 years ago • 1 comments

I am unable to get onShown event to fire. These events work fine: onShow, onNext, onPrev.

Has anyone else seen this issue? There are things I need to check for when each step is shown (to manipulate elements etc).

Thanks

maxmann74 avatar Mar 20 '20 21:03 maxmann74

FYI:

I was able to figure this out. This line in bootstrap.tour.standalone.js throws an error for me: offsetBottom = $(document).outerHeight() - tipOffset.top - $tip.outerHeight();

$(document).outerHeight() shows "not available" in chrome debug tools. I changed this to $(document).height(). Everything seems to work, it no longer errors, and the onShown event now fires.

maxmann74 avatar Mar 23 '20 17:03 maxmann74