The transition behavior change introduced in 2.1.7 has been reverted. All transitions that worked in 2.1.6 and earlier should work exactly the same in 2.1.8.
In order to properly solve #4510, a new type of transition class (
-to) is introduced. Now for each transition phase (
appear) there are three classes. For example for a leaving transition:
v-leave: the starting state for the transition;
v-leave-to: the ending state for the transition;
v-leave-active: applied across the entire transition duration.
v-leave-activebehave exactly like before. The only difference between
v-leave-activeis that it is applied one frame after the transition starts.
The reason for this is that enter transitions are triggered by the removal of
v-enter, which is also one frame after the transition starts. So using
v-leave-activeensures that enter and leave transitions triggered at the same time also start in the exact same frame. The class name also more correctly express what it represents.
All previous transition code will continue to work, but from now on it is recommended to use
v-leave-toto indicate leaving transition end state.
- #4545 fix dynamic transition type for higher-order transition components
- #4560 fix hydration error when interpolated text contains CRLF
- #4564, #4584, #4589 fix regression patch error for elements containing both components and
<slot>(@defcc via #4572)
- #4576 fix enter transition flicker regression
- #4586 fix checkbox
v-modelchecked state for non-boolean values