Skip to content

Commit

Permalink
fix(tooltip): still use parentNode.removeChild to reserve support f…
Browse files Browse the repository at this point in the history
…or IE.
  • Loading branch information
plainheart committed Nov 1, 2023
1 parent ab4372f commit 0d29cd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/component/tooltip/TooltipHTMLContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,9 @@ class TooltipHTMLContent {
dispose() {
clearTimeout(this._hideTimeout);
clearTimeout(this._longHideTimeout);
this.el.remove();

const parentNode = this.el.parentNode;
parentNode && parentNode.removeChild(this.el);
this.el = this._container = null;
}

Expand Down

0 comments on commit 0d29cd8

Please sign in to comment.