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

Commit

Permalink
fix(modal): fire ng-leave on close
Browse files Browse the repository at this point in the history
- Have $animate execute class changes on window close

Closes #5556
Fixes #5399
  • Loading branch information
dasu908 authored and wesleycho committed Mar 1, 2016
1 parent d68086f commit 299f751
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 299f751

Please sign in to comment.