You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "csisy-bt4w (via GitHub)" <gi...@apache.org> on 2024/06/04 10:00:15 UTC
[I] [Bug] Tooltip coordinate markers created by "makeStyleCoord" are not disposed [echarts]
csisy-bt4w opened a new issue, #19998:
URL: https://github.com/apache/echarts/issues/19998
### Version
5.5.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwArAAMPLAATADMmTnZACxZ2ckAHFnJualVRQDspQBs6dahHhTUdP4Q0MpxdiRtJGDAwP6QIG5xjCDU0AJywHQARsAC3KGDdgDcQA
### Steps to Reproduce
1. Set the `tooltip` to append to the `body`
2. The tooltip will create these "marker points" inside the `makeStyleCoord` function
3. These elements will be appended to the body
4. Dispose the chart
### Current Behavior
When the chart is disposed (and thus the tooltip is disposed), these marker elements are not removed from the DOM. This is kind of unexpected in a SPA, where the whole component is destroyed.

### Expected Behavior
These elements should not remain cached when all charts (we currently have a single one) are disposed.
### Environment
```markdown
- OS: Windows 11
- Browser: Chrome 125.0.6422.114
- Framework: Angular@17
```
### Any additional comments?
It's not that big of a deal since these are hidden, 0x0 elements, but still, unnecessary 4 elements in the DOM.
--
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: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] Tooltip coordinate markers created by "makeStyleCoord" are not disposed [echarts]
Posted by "100pah (via GitHub)" <gi...@apache.org>.
100pah closed issue #19998: [Bug] Tooltip coordinate markers created by "makeStyleCoord" are not disposed
URL: https://github.com/apache/echarts/issues/19998
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org