Skip to content

Commit

Permalink
Update src/js/step.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner authored and BrianSipple committed Oct 18, 2018
1 parent 2f7e6a0 commit 0fd8650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/step.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class Step extends Evented {
this.tooltip = null;
}

if (this.el && this.el instanceof HTMLElement) {
if (isElement(this.el) && this.el.parentNode) {
this.el.parentNode.removeChild(this.el);
this.el = null;
}
Expand Down

0 comments on commit 0fd8650

Please sign in to comment.