Skip to content

slot is reused with v-if/v-else #11652

Closed
@jiankafei

Description

@jiankafei

Version

2.6.12

Reproduction link

https://codepen.io/jiankafei/pen/jOqZdpG

Steps to reproduce

Click the switch button, it will switch between two components with slots and without slots. The components without slots should not appear the slots passed to the components with slots

What is expected?

Should display the fallback slot

What is actually happening?

Displays the previous slot


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions