This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch fix/tooltip-dispose-NPE
in repository https://gitbox.apache.org/repos/asf/echarts.git


The following commit(s) were added to refs/heads/fix/tooltip-dispose-NPE by 
this push:
     new ab4372f8e fix(tooltip): clearTimeout when disposing
ab4372f8e is described below

commit ab4372f8e7db8656ca5c43e6a90ba7bb40f212d4
Author: plainheart <y...@all-my-life.cn>
AuthorDate: Wed Nov 1 19:27:32 2023 +0800

    fix(tooltip): clearTimeout when disposing
---
 src/component/tooltip/TooltipHTMLContent.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/component/tooltip/TooltipHTMLContent.ts 
b/src/component/tooltip/TooltipHTMLContent.ts
index cc6ef51c5..817ec1d60 100644
--- a/src/component/tooltip/TooltipHTMLContent.ts
+++ b/src/component/tooltip/TooltipHTMLContent.ts
@@ -520,6 +520,8 @@ class TooltipHTMLContent {
     }
 
     dispose() {
+        clearTimeout(this._hideTimeout);
+        clearTimeout(this._longHideTimeout);
         this.el.remove();
         this.el = this._container = null;
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to