This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ng-animate class not removed if removeClass() called before addClass() completes #7801
Comments
matsko
pushed a commit
to matsko/angular.js
that referenced
this issue
Jun 13, 2014
matsko
pushed a commit
to matsko/angular.js
that referenced
this issue
Jun 13, 2014
matsko
pushed a commit
to matsko/angular.js
that referenced
this issue
Jun 13, 2014
matsko
pushed a commit
to matsko/angular.js
that referenced
this issue
Jun 23, 2014
matsko
pushed a commit
to matsko/angular.js
that referenced
this issue
Jun 23, 2014
matsko
pushed a commit
to matsko/angular.js
that referenced
this issue
Jul 1, 2014
ckknight
pushed a commit
to ckknight/angular.js
that referenced
this issue
Jul 16, 2014
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 thedone
function is not passed before the animation gets cancelled (removeClass
is called duringaddClass
) theng-animate
class is never removed from the element once theremoveClass
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.The text was updated successfully, but these errors were encountered: