Skip to content

Components non-direct children of Teleport do not trigger vnode-unmounted #3785

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

Closed
germsb opened this issue May 17, 2021 · 3 comments
Closed
Labels
🐞 bug Something isn't working

Comments

@germsb
Copy link

germsb commented May 17, 2021

Version

3.0.11

Reproduction link

Vue SFC Playground

Steps to reproduce

Place a component with a onUnmounted hook and / or vnode-unmounted event inside a node inside a teleport component.

What is expected?

When the component is unmounted, hook and / or event must be triggered

What is actually happening?

Nothings

@posva posva changed the title The onUnmouted hook does not trigger under certain conditions Components non-direct children of Teleport do not trigger vnode-unmounted May 17, 2021
@posva posva added the 🐞 bug Something isn't working label May 17, 2021
@posva
Copy link
Member

posva commented May 17, 2021

I'm not sure this is a bug or by design: only direct-children (e.g. the div that is wrapping Comp) trigger the hook

@edison1105
Copy link
Member

duplicate of #3623

@HcySunYang
Copy link
Member

duplicate of #3623

@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants