Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TransitionGroup does not remove element from DOM

Tags:

reactjs

I have a problem where TransitionGroup does not remove all elements from the DOM.

I'd like to toggle between 2 and 4 elements. However with TransitionGroup it always toggles between 3 and 4 elements. I don't get this behavior.

Take a look the the jsfiddle. If you remove TransitionGroup everything works fine.

Any ideas?

Please notice that I'm deliberately using TransitionGroup and not CSSTransitionGroup

Thank you!

like image 477
zemirco Avatar asked Mar 05 '26 03:03

zemirco


1 Answers

Looks like this is a real bug in React. Checkout these GitHub issues #3111 and #2549.

It will hopefully be fixed with version 0.14.

like image 188
zemirco Avatar answered Mar 07 '26 17:03

zemirco



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!