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

fix(modal): animate backdrop concurrently with window #4039

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ angular.module('ui.bootstrap.modal', [])

removeAfterAnimate(modalWindow.modalDomEl, modalWindow.modalScope, function() {
body.toggleClass(OPENED_MODAL_CLASS, openedWindows.length() > 0);
checkRemoveBackdrop();
});
checkRemoveBackdrop();

//move focus to specified element if available, or else to body
if (elementToReceiveFocus && elementToReceiveFocus.focus) {
Expand Down
2 changes: 0 additions & 2 deletions src/modal/test/modal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ describe('$modal', function () {
expect($document).toHaveBackdrop();

dismiss(modal, 'closing in test');
$animate.triggerCallbacks();

expect($document).toHaveModalsOpen(0);

Expand Down Expand Up @@ -226,7 +225,6 @@ describe('$modal', function () {
expect($document).toHaveBackdrop();

dismiss(modal, 'closing in test');
$animate.triggerCallbacks();

expect($document).toHaveModalsOpen(0);

Expand Down