Open DAcodedBEAT opened 2 weeks ago
@etimberg / @LeeLenaleee I used optional chaining and null coalescing because of this discussion - https://github.com/chartjs/Chart.js/pull/11651#issuecomment-1925881486, which is why the CI pipeline failed. Give the word and I'll remove the rule so this pipeline can pass.
@etimberg / @LeeLenaleee can you re-review this?
It feels kind of hacky to just return semi default values if the canvas does not exist.
Can you reproduce the errors because it seems to me that if you remove the parents and keep chart.js alive. But if you destroy the chart first these errors also should not happen
Expected behavior
getComputedStyle()
fromhelpers.dom.js
should be called with validcanvas
values provided.Current behavior
From sentry:
Reproducible sample
.
Optional extra steps/info to reproduce
No response
chart.js version
4.4.3
Browser name and version
Experienced on Chrome >=124.0.0 according to my project's Sentry, but probably impacts others since this is an issue with the provided parameter.
Link to your project
No response