Search code examples
bootstrap-tour

Bootstrap tour backdrop blinking between steps


There is an annoying effect in v0.12.0 of Bootstrap tour when activating backdrop. It works, but once you click next step, backdrops disapears for a moment and appears again doing a blink.

Anyone has a way to deactivate this behavior or a fix for this?

This is the last version... and it is 1 year old by now.


Solution

  • Well I did something that worked. In the "hidestep" function I changed the condition, removing the last or statement:

    if (step.backdrop) {
        next_step = (iNext != null) && _this.getStep(iNext);
    
        if (!next_step || !next_step.backdrop /*|| next_step.backdropElement !== step.backdropElement*/) {
                  _this._hideOverlayElement(step);
           }
     }
    

    So it ends:

    if (step.backdrop) {
            next_step = (iNext != null) && _this.getStep(iNext);
    
            if (!next_step || !next_step.backdrop ) {
                      _this._hideOverlayElement(step);
               }
         }