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

Commit

Permalink
fix(modal): remove 'modal-open' from body
Browse files Browse the repository at this point in the history
  • Loading branch information
genesy authored and adamdbradley committed Aug 21, 2016
1 parent 08d7425 commit 6ed7253
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/angular/service/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl
}

return $timeout(function() {
$ionicBody.removeClass(self.viewType + '-open');
if (!modalStack.length) {

This comment has been minimized.

Copy link
@aleen42

aleen42 Oct 10, 2017

Should it be modalStack.length > 0?

This comment has been minimized.

Copy link
@aleen42
$ionicBody.removeClass(self.viewType + '-open');
}
self.el.classList.add('hide');
}, self.hideDelay || 320);
},
Expand Down

0 comments on commit 6ed7253

Please sign in to comment.