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 >
2
2
< ng-content > </ ng-content >
3
3
</ div >
Original file line number Diff line number Diff line change @@ -642,6 +642,17 @@ describe('MatDrawer', () => {
642
642
} ) ) ;
643
643
644
644
} ) ;
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
+
645
656
} ) ;
646
657
647
658
describe ( 'MatDrawerContainer' , ( ) => {
You can’t perform that action at this time.
0 commit comments