Closed
Description
Version
5.5.0
Link to Minimal Reproduction
Steps to Reproduce
- Set the
tooltip
to append to thebody
- The tooltip will create these "marker points" inside the
makeStyleCoord
function - These elements will be appended to the body
- 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
- 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.