Skip to content

Vue transition-group not working with slots? #9578

@gmanish

Description

@gmanish

Version

2.6.7

Reproduction link

https://jsfiddle.net/gmanish/L3y8j57s/

Steps to reproduce

See that there's a within an opening/closing transition-group tags in the tabs component template.
Click on the tab headers to switch between tabs.

What is expected?

Expected to see the transition between tabs happening with the specified transition out-left.

What is actually happening?

While the tab contents switch as expected, the transition-group seems to have no effect. The transitions are not rendered.


Similar flattened code, i.e. without the components and slots, works just fine.
I ran into this issue while trying to create a carousel slide component with transitions left-out/right-out transitions depending on whether we're moving to the next/previous slide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions