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
Description
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
Labels
No labels