Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 4d641ca

Browse files
fix(moadl): toggle 'modal-open' class after animation
Fixes #1629
1 parent dfc36fd commit 4d641ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modal/modal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
143143
//remove window DOM element
144144
removeAfterAnimate(modalWindow.modalDomEl, modalWindow.modalScope, 300, function() {
145145
modalWindow.modalScope.$destroy();
146+
body.toggleClass(OPENED_MODAL_CLASS, openedWindows.length() > 0);
146147
checkRemoveBackdrop();
147148
});
148-
body.toggleClass(OPENED_MODAL_CLASS, openedWindows.length() > 0);
149149
}
150150

151151
function checkRemoveBackdrop() {

0 commit comments

Comments
 (0)