Skip to content

Commit 154d07e

Browse files
committed
fix($animate): prevent leaving animate classes after animation is done
In some cases ngAnimate transitional classes (like *-remove & *-remove-active) were left after animation was over. Change introduced in this commit prevent such situations. Closes angular#4490
1 parent 7491280 commit 154d07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngAnimate/animate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ angular.module('ngAnimate', ['ng'])
728728
function animate(element, className, done) {
729729

730730
var cacheKey = getCacheKey(element);
731-
if(getElementAnimationDetails(element, cacheKey, true).transitionDuration > 0) {
731+
if(getElementAnimationDetails(element, cacheKey + ' ' + className, true).transitionDuration > 0) {
732732

733733
done();
734734
return;

0 commit comments

Comments
 (0)