-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(data-table): ensure cleaning-up events #5743
Conversation
This change ensure Carbon handle management API is used for attaching events in vanilla data table, to avoid orphaned events. Fixes carbon-design-system#5742.
Deploy preview for carbon-elements ready! Built with commit e0edfcb |
Deploy preview for carbon-components-react ready! Built with commit e0edfcb https://deploy-preview-5743--carbon-components-react.netlify.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, testing with the example code the event handlers appear to be released correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything seems to still work as expected 👍 ✅
This change ensure Carbon handle management API is used for attaching events in vanilla data table, to avoid orphaned events.
Fixes #5742.
Changelog
Changed
.addEventListener()
calls withthis.manage(on())
calls, to participate those event handlers in component lifecycle management.Testing / Reviewing
Testing should make sure: