It's the first time I use this library and I'm having a very strange issue. I'm using the standalone v0.10.1 version.
This is my code:
var tour = new Tour({
backdrop: true,
debug: true,
steps: [
{
element: '#myResourcesMenu',
title: "Title of my step",
content: "Content of my step",
placement: "bottom"
},
{
element: '.access-unit-button:not(.disabled)',
title: "Title of my step",
content: "Content of my step"
}
],
onHidden: function(tour) {
jQuery(tour.getStep(tour._current).element).show();
}
});
Every time I click on prev/next/end tour, it removes the tooltip (obviously) and also hides, with a "display:none", my highlighted element related to the step. It should not hide my element, no?
The only way I found to avoid this, is putting this code:
onHidden: function(tour) {
jQuery(tour.getStep(tour._current).element).show();
}
I've also looked at bottstrap-tour code and found the line that is causing this within the hideStep function:
$element.popover('destroy').removeClass("tour-" + _this._options.name + "-element tour-" + _this._options.name + "-" + i + "-element");
If I remove "popover('destroy')", it works as expected, but when clicking on End tour it doesn't remove the step tooltip, so it is not a solution.
Any idea of what is going on?