scttcper opened a new issue #16146: URL: https://github.com/apache/echarts/issues/16146
### Version 5.2.2 ### Link to minimal reproduction _No response_ ### Steps To Reproduce Destroy a component while the tooltip is recalculating position, the throttle function attempts to run after the chart has been destroyed.  ``` TypeError: this._zr is null at getWidth(../node_modules/echarts/lib/core/echarts.js:447:5) at apply(../node_modules/echarts/lib/component/tooltip/TooltipView.js:647:31) at exec(../node_modules/echarts/lib/util/throttle.js:72:8) ``` ### Current Behavior getWidth errors ### Expected Behavior The throttle function should be destroyed when the chart is destroyed, or getWidth should fail silently I believe this is not being destroyed https://github.com/apache/echarts/blob/6641951e1bd1bb7beb18a695caaa39a5fda0e885/src/component/tooltip/TooltipView.ts#L229 ### Environment ```markdown - OS: MacOs - Browser: chrome 96 - Framework: react ``` ### Any additional comments? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
