Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjoneill committed Nov 29, 2016
1 parent d6290d0 commit 8353609
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/sidenav/sidenav.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="md-sidenav-backdrop" (click)="_closeModalSidenav()"
<div class="md-sidenav-backdrop" (click)="_onBackdropClicked()"
[class.md-sidenav-shown]="_isShowingBackdrop()"></div>

<ng-content select="md-sidenav"></ng-content>
Expand Down
7 changes: 5 additions & 2 deletions src/lib/sidenav/sidenav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,12 @@ export class MdSidenavLayout implements AfterContentInit {
this._setDrawersValid(true);
}

_closeModalSidenav() {
this.onBackdropClicked.emit(null);
_onBackdropClicked() {
this.onBackdropClicked.emit();
this._closeModalSidenav();
}

_closeModalSidenav() {
if (this._start != null && this._start.mode != 'side') {
this._start.close();
}
Expand Down

0 comments on commit 8353609

Please sign in to comment.