A feature-rich Portal Plugin for Vue 3, for rendering DOM outside of a component, anywhere in your app or the entire document. (Vue 2 version: v2.portal-vue.linusb.org)
Problem: When the <Portal> component is the root component in another component, then the transition is not applied when it is rendered. Here's representational code:
Problem: When the
<Portal>
component is the root component in another component, then the transition is not applied when it is rendered. Here's representational code:Expected: When the modal is mounted, then I expect it to transition in and transition out when unmounted.
Actual: No transition is applied when the component is mounted/unmounted.
I found that by moving the
<Portal>
out of the component, the transitions starts working. But I wouldn't want to have this much repeated code.Reproduction: I made a Codepen with the not working transition. The working example is commented out as well.
Any help is appreciated!