File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- < div class ="md-sidenav-backdrop " (click) ="_closeModalSidenav () "
1+ < div class ="md-sidenav-backdrop " (click) ="_onBackdropClicked () "
22 [class.md-sidenav-shown] ="_isShowingBackdrop() "> </ div >
33
44< ng-content select ="md-sidenav "> </ ng-content >
Original file line number Diff line number Diff line change @@ -400,9 +400,12 @@ export class MdSidenavLayout implements AfterContentInit {
400400 this . _setDrawersValid ( true ) ;
401401 }
402402
403- _closeModalSidenav ( ) {
404- this . onBackdropClicked . emit ( null ) ;
403+ _onBackdropClicked ( ) {
404+ this . onBackdropClicked . emit ( ) ;
405+ this . _closeModalSidenav ( ) ;
406+ }
405407
408+ _closeModalSidenav ( ) {
406409 if ( this . _start != null && this . _start . mode != 'side' ) {
407410 this . _start . close ( ) ;
408411 }
You can’t perform that action at this time.
0 commit comments