Skip to content

Cancelled transitions on v-show still add the enterToClass or leaveToClass #7390

Closed
@Akryum

Description

@Akryum

Version

2.5.13

Reproduction link

https://jsfiddle.net/Akryum/aa6gqqkn/

Steps to reproduce

Cancel a transition in the next frame. Example cancelling a fade-out transition:

this.show = false
this.$nextTick(() => {
  this.show = true
})

What is expected?

The v-enter-to or v-leave-to classes are not added to the element.

What is actually happening?

The v-enter-to or v-leave-to classes are still added to the element despite the transition being cancelled.


Those lines should likely be put being a !cb.cancelled guard:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions