Skip to content

leave transition doesn't work if the element is shown by default #3573

@matkovsky

Description

@matkovsky

Vue.js version

1.0.26

Reproduction Link

http://codepen.io/matkovsky/pen/EgYRyV?editors=1010

Steps to reproduce

  1. Create a custom transition.
  2. Add it to an element that has v-show set to true by default.
  3. Toggle the value of v-show (by toggling the corresponding data in the model, of course).

What is Expected?

It should animate.

What is actually happening?

The first leave is not animated. It looks like the v-leave ([transitionName]-leave) class is missing the first time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions