-
Notifications
You must be signed in to change notification settings - Fork 48.5k
ReactTransitionGroup - Using with JQuery cause Uncaught TypeError: Cannot read property 'componentDidLeave' of undefined #5296
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
Comments
I'm not using jQuery but I'm also seeing this errors. Seems that |
This should have been fixed in 0.14.3. |
@spicyj |
Verified that the user's code is still throwing using 0.14.3 http://jsfiddle.net/fk7dey0u/ (the user's fiddle is using react-dom-0.14.0, not that it matters) |
Doesn't work using 0.14.6 |
I think we fixed a different variant of this. |
@lovedota @re6exp It looks like you are hitting an e
8000
rror because the We should be more resilient to this behavior in ReactTransitionGroup though so that the original code you have also works. |
I have the same issue with velocity-react (that includes velocity). changing https://github.com/facebook/react/blob/master/src/addons/transitions/ReactTransitionGroup.js#L185 if (component && component.componentDidLeave) {
component.componentDidLeave();
} makes everything go smoothly, i'm going to propose a PR. |
If you are using |
I’m going to close since we don’t plan any more changes to TransitionGroup in React repo. Instead, it now is maintained by the community, and you can file an issue in the new repository if this is still affecting you. Thanks! |
Hi
Please take a look at this https://jsfiddle.net/pvtb9jbt/
After adding some items, please click remove and see the console.log
This is cause from
Can we check
Thanks !
The text was updated successfully, but these errors were encountered: