Skip to content

Transition group classes not being properly deleted when using v-show #5800

Open
@ma7moudat

Description

@ma7moudat

Version

2.3.3

Reproduction link

https://jsfiddle.net/ma7moudat/u82ugj8z/1/

Steps to reproduce

Set up a transition group that automatically rotates through a list of items and shows one item at a time (a slider if you will).

What is expected?

The last item disappears and the new item appears at the specified intervals.

What is actually happening?

Everything seems to be running perfectly fine, but if you leave the window for a minute or so (go to a new tab or another window) and then come back, the transition group becomes a mess, because the transition classes get added over and over without being removed from the items.

So you would get something like this!

<div class="item crossfade-enter-to crossfade-enter-to crossfade-leave-to crossfade-enter-to crossfade-leave-to crossfade-enter-to crossfade-leave-to crossfade-enter-to crossfade-leave-to crossfade-enter-to crossfade-leave-to crossfade-enter-to crossfade-leave-to crossfade-enter-to crossfade-leave-to crossfade-enter-to crossfade-leave-to .........">

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