Skip to content

TransitionGroup bleeds trigger of custom classes (and possibly other things?) to nested TransitionGroups  #12315

Closed as not planned
@femans

Description

@femans

Vue version

3.5.2

Link to minimal reproduction

Vue SFC Playground example

Steps to reproduce

In the example is a nested transition group. This is typical for Trello-like applications. Custom classes (e.g. tailwind) are put on both the outer and the inner group. Most importantly: the move-class is something like transition-all.

What is expected?

When triggering a transition of the outer class, the elements of the inner class should remain undisturbed and move as a single block.

What is actually happening?

The moveClass of the inner TransitionGroup is applied as well. A transition-all class is placed on the elements of the inner group, which causes the elements being moved to slide all over the place.

In the given minimal example, this is made extra clear by applying colors to the moveClass.

System Info

No response

Any additional comments?

Working on a plugin for hovering lists in vue, I ran into this while trying to bring it to the maturity level of using nested lists (trello style): https://github.com/vuereka/vue-arrange

I did not test if other styles, classes and hooks have the same issue. I hope that by looking at the vue code an idea of the scope of the bug will arise such that sensible tests can be designed/executed.

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