Transition component does not work with "*-leave-from"
Version
3.0.2
Reproduction link
https://codesandbox.io/s/transition-leave-bug-evexs
Steps to reproduce
https://codesandbox.io/s/transition-leave-bug-evexs
What is expected?
When trigger leave, the font color should translate from red
to default.
What is actually happening?
- Properties in class
*-leave-from
not work. - The class
*-leave-from
affects the normal operation of transition component.
The reason is related to the process of adding/removing css-class, i would like to fix it.
It looks like adding a property to be removed right away (in this case the color: red being only in leave-from) breaks the transition. To workaround it, you can add a color property to .test-leave-to