Skip to content
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(modal): only call toggleClass when needed #7082

Merged
merged 2 commits into from
Oct 19, 2020

Conversation

tw15egan
Copy link
Collaborator

Closes #7011

Adds in check to ensure we only call toggleClass when the open state is changed

Changelog

New

  • Check to only call toggleClass when the state has changed

Testing / Reviewing

Go to ComposedModal and try toggling the modal via knobs and x icon and ensure everything still works

@netlify
Copy link

netlify bot commented Oct 19, 2020

Deploy preview for carbon-elements ready!

Built with commit 5cbeec1

https://deploy-preview-7082--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Oct 19, 2020

Deploy preview for carbon-components-react ready!

Built with commit 5cbeec1

https://deploy-preview-7082--carbon-components-react.netlify.app

@kodiakhq kodiakhq bot merged commit b162614 into carbon-design-system:master Oct 19, 2020
@tw15egan tw15egan deleted the modal-perf-fix branch April 28, 2021 18:16
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.

[ComposedModal] Performance issue when using controlled form components inside modal body
3 participants