2.3.3
https://codepen.io/anon/pen/XaMWYY
The elements with v-show should transition properly and respect the specified transition mode
The initial element animates, then the one that is meant to replace it never appears.
I ran into this while making part of a form.
I can not use v-if since I need all of my form fields to stay within the HTML, so I can use them in my back-end on form submit.
I'm probably just misunderstanding something, but I have found nothing through the repo's issues and Google. Any help is greatly appreciated!
Transition must have only one element (v-if allows that). Use the development version and you'll see the error
[Vue warn]: <transition> can only be used on a single element. Use <transition-group> for lists.
(found in <Root>)
Thank you for the answer. I had seen the error in the console beforehand.
It seems like mode="out-in" does not work on transition-group.
How would one achieve the desired effect then? Should I use the hooks and trigger my animations manually or is there a cleaner way?
I'd personally just use v-if. transition-group doesn't seem to fit the use case. But please ask questions on the forums, Discord or SO.
Thank you! Sorry for the inconvenience.
no worries 馃檪