File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1- < div class ="mat-drawer-inner-container ">
1+ < div class ="mat-drawer-inner-container " cdkScrollable >
22 < ng-content > </ ng-content >
33</ div >
Original file line number Diff line number Diff line change @@ -642,6 +642,17 @@ describe('MatDrawer', () => {
642642 } ) ) ;
643643
644644 } ) ;
645+
646+ it ( 'should mark the drawer content as scrollable' , ( ) => {
647+ const fixture = TestBed . createComponent ( BasicTestApp ) ;
648+ fixture . detectChanges ( ) ;
649+
650+ const content = fixture . debugElement . query ( By . css ( '.mat-drawer-inner-container' ) ) ;
651+ const scrollable = content . injector . get ( CdkScrollable ) ;
652+ expect ( scrollable ) . toBeTruthy ( ) ;
653+ expect ( scrollable . getElementRef ( ) . nativeElement ) . toBe ( content . nativeElement ) ;
654+ } ) ;
655+
645656} ) ;
646657
647658describe ( 'MatDrawerContainer' , ( ) => {
You can’t perform that action at this time.
0 commit comments