Skip to content

[fixed] ModalPortal's componentWillReceiveProps #16

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
Feb 26, 2015

Conversation

arasmussen
Copy link
Contributor

For some reason componentWillReceiveProps is being called with identical props. We need to compare previous props with new props to make sure state is changing from closed to open before calling this.open(). Otherwise we're calling this.open() even when state isn't changing. Same with this.close().

@jeffutter
Copy link

It seems like this fixes #11 for me and does not seem to break anything. Could we get this merged?

ryanflorence added a commit that referenced this pull request Feb 26, 2015
[fixed] ModalPortal's componentWillReceiveProps
@ryanflorence ryanflorence merged commit db8b725 into reactjs:master Feb 26, 2015
@ryanflorence
Copy link
Contributor

v0.1.0 published with this fix

@jeffutter
Copy link

@ryanflorence Awesome! Thank you

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.

3 participants