While using the beforeEnter event in a TourGuideStep, the tour will exit if the promise is not resolved before the Promise's function finishes executing. The backdrop is removed and users can interact with the page. Once the Promise is resolved, the tour starts up again at that step, and the backdrop comes back.
For example:
beforeEnter() {
return new Promise(function (resolve, reject) {
setTimeout(function () { resolve(); }, 10000);
//the tour exits until the Promise is resolved
});
}
I would expect the tour to not exit and instead wait for the promise to resolve. In this case, it should continue to show the backdrop while waiting. If the user clicks anywhere during the wait, the tour should exit and not start up again once the Promise is resolved.
Hi @jmanos, thanks for raising the issue. I have just released 0.0.11 to NPM which should address the problem. Re-open the issue if the problem persists. Thanks
While using the
beforeEnter
event in aTourGuideStep
, the tour will exit if the promise is not resolved before the Promise's function finishes executing. The backdrop is removed and users can interact with the page. Once the Promise is resolved, the tour starts up again at that step, and the backdrop comes back.For example:
I would expect the tour to not exit and instead wait for the promise to resolve. In this case, it should continue to show the backdrop while waiting. If the user clicks anywhere during the wait, the tour should exit and not start up again once the Promise is resolved.
I am using TourGuideJs v0.0.10 in Chrome.