Skip to content

Do not notify plugins after their uninstall function has been called #12098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2025

Conversation

bojidar-bg
Copy link
Contributor

@bojidar-bg bojidar-bg commented Jul 11, 2025

Fixes #12032 - the problem in the issue was that chart.destroy was being called in onClick, which is probably not the right way to use chart.destroy (ideally, it would be wrapped in requestAnimationFrame or setTimeout), but with this PR, similar issues related to chart.destoy() being called at the wrong time should have less impact on plugins.

@etimberg etimberg added this to the Version 4.5.1 milestone Jul 11, 2025
@etimberg etimberg merged commit 6372280 into chartjs:master Jul 12, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read properties of undefined (reading 'handleEvent')
3 participants