Skip to content

Switching between slot children's children that have v-if does not update dom #3569

Open
@rashfael

Description

@rashfael

Version

3.0.11

Reproduction link

https://jsfiddle.net/Lrnebjuv/24/

Steps to reproduce

  • Click button "Click me" multiple times

What is expected?

Text below button should show 1, 2, 3 in a loop

What is actually happening?

Text shows 1, 1, 3 instead


Also happens without .children.default() using <slot></slot> instead in this variant https://jsfiddle.net/Lrnebjuv/25/

Original context is a tab component:
rashfael/buntpapier#22
https://github.com/rashfael/buntpapier/blob/vue3/src/tabs.js

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