Skip to content

Multilayer teleport can not be remove completely #3623

@yunbookf

Description

@yunbookf

Version

3.0.11

Reproduction link

https://codepen.io/jsqy/pen/xxgJWdw

Steps to reproduce

This is just one example, the reality will be more complex, but the principle should be the same.

Reproduction link: Click the "change" button to control the alternate display of the two divs, but the teleport in the #pop does not uninstall with the uninstall of the div.

What is expected?

Because I often use teleport in components, and the component's slot may also contain teleport, the elements in the #pop are not completely unmounted.

What is actually happening?

A multi-layered teleport can cause exceptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workinghas workaroundA workaround has been found to avoid the problemscope: teleport

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions