Subscribe on changes!

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

avatar
May 17th 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

avatar
May 17th 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

avatar
May 18th 2021

duplicate of #3623

avatar
May 18th 2021

duplicate of #3623