Skip to content

Commit

Permalink
feat($ionicModal): close on backdrop click on desktop/tablet
Browse files Browse the repository at this point in the history
Closes #1087
  • Loading branch information
ajoslin committed Apr 30, 2014
1 parent 3ba3c3f commit 554c439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/angular/directive/modal.js
Expand Up @@ -8,7 +8,7 @@ IonicModule
restrict: 'E',
transclude: true,
replace: true,
template: '<div class="modal-backdrop">' +
template: '<div class="modal-backdrop" ng-click="modal.hide()">' +
'<div class="modal-wrapper" ng-transclude></div>' +
'</div>'
};
Expand Down
3 changes: 2 additions & 1 deletion scss/_modal.scss
Expand Up @@ -51,7 +51,8 @@
.modal-open {
pointer-events: none;

.modal {
.modal,
.modal-backdrop {
pointer-events: auto;
}
}

0 comments on commit 554c439

Please sign in to comment.