From 29be8c78420a6396188ad7ca20f2c9697356d2aa Mon Sep 17 00:00:00 2001 From: "andrej.anafinow" Date: Thu, 21 Jan 2016 16:17:04 +0100 Subject: [PATCH] pass the closedDeferred promise to removeAfterAnimate function --- src/modal/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modal/modal.js b/src/modal/modal.js index 78bd5e926e..c88840562a 100644 --- a/src/modal/modal.js +++ b/src/modal/modal.js @@ -302,7 +302,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.stackedMap']) openedClasses.remove(modalBodyClass, modalInstance); appendToElement.toggleClass(modalBodyClass, openedClasses.hasKey(modalBodyClass)); toggleTopWindowClass(true); - }); + }, modalWindow.closedDeferred); checkRemoveBackdrop(); //move focus to specified element if available, or else to body