Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teleport contents are not removed #1088

Closed
basvanmeurs opened this issue Apr 30, 2020 · 0 comments
Closed

Teleport contents are not removed #1088

basvanmeurs opened this issue Apr 30, 2020 · 0 comments
Labels
🐞 bug Something isn't working scope: teleport

Comments

@basvanmeurs
Copy link
Contributor

basvanmeurs commented Apr 30, 2020

Version

3.0.0-beta.4

Reproduction link

https://codepen.io/basvanmeurs/pen/QWjMPJY?editors=1111

Steps to reproduce

Create a component using teleport. Add this component to the App via v-if. Then make sure that the v-if evaluates to false: the component will be unmounted.

What is expected?

The teleport contents are unmounted when the component is unmounted.

What is actually happening?

The teleport contents are not removed. They stay there.

Comments

It has something to do with dynamicChildren. It's an empty array on the component, while in reality it contains the teleport as a child. So children are not unmounted, as is teleport.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working scope: teleport
Projects
None yet
Development

No branches or pull requests

2 participants