-
Notifications
You must be signed in to change notification settings - Fork 17
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
Transition classes are not removed after transition is done #8
Comments
Seems really fixed in react, as it cannot be reproduced on react https://mauron85.github.io/preact-css-transition-group-issue/react.html |
I recall they add a manual timeout, which we'd want to do here as well. |
I just want to share progress on this. I would like to rebase preact-css-transition-group on top of [email protected]. I've decided that Instead of storing modified react source files, I'm going to add additional build step, that will:
So repo will only hold patches. Initial work is in my repo https://github.com/mauron85/preact-css-transition-group/tree/fix/issue-8 Basically there is new command: But there are some problems that need to be resolved:
|
The original React sources are using String refs, which are not supported in Preact core (only in preact-compat). |
I was able to fix 2. by comparing with your code. Now it finally render something at least, but still need some treatment. Also I can confirm, that react fixed it by adding timeout, like you said. |
Hey, that's quite an improvement over just rendering nothing, haha. Do you think adding a timeout fallback would fix the issue seen on your link, or is it something else? |
Small update. React team recently release react-transition-group as standalone project with almost no external dependencies.
Demo: https://mauron85.github.io/preact-css-transition-group-issue/fixed.html Also I would like to make it work also with pure preact (without the need of preact-compat) It should be viable, if we can find replacement for this findDOMNode. And also https://github.com/reactjs/prop-types instead preact-compat Proptypes. (I've actually tried this, but it somehow does not work in production build) |
That's awesome, I was really hoping the standalone version would "just work" with compat! Perhaps we can just redirect users there so we don't have to maintain a fork at all :) We're working on releasing For function findDOMNode(component) {
return component.base;
} Maybe we can get an issue filed on the |
This is fixed in 1.3.0. |
Environment
Context
This is similar seems to identical or similar to facebook/react#1707.
However I've identified two issues:
The outcome is either (unpredictable):
After sequence of fast changes (add/delete operations) nodes under ReactCSSTransitionGroup are left stuck with transition classes *-leave *-enter-active.
After sequence of fast changes (add/delete operations) nodes under ReactCSSTransitionGroup both nodes (node that is "entering" and also node that is "leaving") are kept in DOM.
Steps to Reproduce
Possible fix
Merge latest react-css-animation-group changes.
The text was updated successfully, but these errors were encountered: