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

Commit 594f36e

Browse files
committed
fix(ngAnimate): $timeout without invokeApply
This change calls $timeout with the invokeApply parameter set to false which stops ngAnimate from invoking its changes inside an $apply block
1 parent d518a64 commit 594f36e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngAnimate/animateCss.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {
912912

913913
startTime = Date.now();
914914
element.on(events.join(' '), onAnimationProgress);
915-
$timeout(onAnimationExpired, maxDelayTime + CLOSING_TIME_BUFFER * maxDurationTime);
915+
$timeout(onAnimationExpired, maxDelayTime + CLOSING_TIME_BUFFER * maxDurationTime, false);
916916

917917
applyAnimationToStyles(element, options);
918918
}

0 commit comments

Comments
 (0)