component with `v-if="false"` breaks transition `mode="out-in"`
Version
3.2.21
Reproduction link
A more realistic example with a toggle for the component visibility
Steps to reproduce
- Click toggle multiple times
What is expected?
The comp1 should be visible when toggling back
What is actually happening?
Nothing is displayed after toggling once
as a workaround add a key to transition:
<transition :key="key" name="fade" mode="out-in">
<component :is="Component" :key="key" />
</transition>