Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ng-animate class not removed if removeClass() called before addClass() completes #7801

Closed
@georeith

Description

@georeith

I have reproduced an example of this issue at http://jsbin.com/vahokopa/2/.

The issue occurs when a custom JavaScript animation is added via the $animate.addClass() function and is accompanied by $animate.removeClass(). If the done function is not passed before the animation gets cancelled (removeClass is called during addClass) the ng-animate class is never removed from the element once the removeClass function has completed (and vice-versa).

To see the issue just click anywhere in the output window on my example twice within 2 seconds.

This can be problematic if you are using the .ng-animate class to apply styles during an animation.

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