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): prevent unnecessary renders #973

Merged
merged 1 commit into from
Dec 1, 2016

Conversation

jeffcarbs
Copy link
Member

Fixes #969

We continuously check the height of the Modal to determine if it should be scrolling or not. When we made Modal autocontrolled, it broke the check we were using to determine if we should call setState.

This fixes the check and makes it faster and more future-proof so if more keys are added to state it won't unexpectedly break again.

@levithomason levithomason merged commit dedd5a4 into master Dec 1, 2016
@levithomason levithomason deleted the feature/modal-rendering branch December 1, 2016 15:46
@levithomason
Copy link
Member

Thanks much!

@levithomason
Copy link
Member

Released in semantic-ui-react@0.61.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modal continuously updating
2 participants