Skip to content

Commit

Permalink
Check for this.el before hiding it
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Jul 29, 2018
1 parent 27da4ee commit b212313
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/js/shepherd.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,11 @@ class Step extends Evented {
hide() {
this.trigger('before-hide');

this.el.hidden = true;
// We need to manually set styles for < IE11 support
this.el.style.display = 'none';
if (this.el) {
this.el.hidden = true;
// We need to manually set styles for < IE11 support
this.el.style.display = 'none';
}

document.body.removeAttribute('data-shepherd-step');

Expand Down

0 comments on commit b212313

Please sign in to comment.