From dbc9d4e41b6a6897e9b39a5f042b1f8d7798161c Mon Sep 17 00:00:00 2001 From: dasu908 Date: Mon, 29 Feb 2016 19:18:52 -0500 Subject: [PATCH] ng-leave animation bug https://github.com/angular-ui/bootstrap/issues/5399 --- src/modal/modal.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modal/modal.js b/src/modal/modal.js index f591088161..b7c13e059b 100644 --- a/src/modal/modal.js +++ b/src/modal/modal.js @@ -361,9 +361,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.stackedMap']) } afterAnimating.done = true; - $animateCss(domEl, { - event: 'leave' - }).start().then(function() { + $animate.leave(domEl).then(function() { domEl.remove(); if (closedDeferred) { closedDeferred.resolve();