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

Commit

Permalink
fix(modal): animate backdrop concurrently with window
Browse files Browse the repository at this point in the history
- Start animation of backdrop at the same time as the window

Closes #4039
Closes #4036
  • Loading branch information
wesleycho authored and Foxandxss committed Jul 30, 2015
1 parent 1afc5d1 commit c55ee4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
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

0 comments on commit c55ee4f

Please sign in to comment.