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 @@ -643,6 +643,17 @@ describe('MatDrawer', () => {
643
643
} ) ) ;
644
644
645
645
} ) ;
646
+
647
+ it ( 'should mark the drawer content as scrollable' , ( ) => {
648
+ const fixture = TestBed . createComponent ( BasicTestApp ) ;
649
+ fixture . detectChanges ( ) ;
650
+
651
+ const content = fixture . debugElement . query ( By . css ( '.mat-drawer-inner-container' ) ) ;
652
+ const scrollable = content . injector . get ( CdkScrollable ) ;
653
+ expect ( scrollable ) . toBeTruthy ( ) ;
654
+ expect ( scrollable . getElementRef ( ) . nativeElement ) . toBe ( content . nativeElement ) ;
655
+ } ) ;
656
+
646
657
} ) ;
647
658
648
659
describe ( 'MatDrawerContainer' , ( ) => {
You can’t perform that action at this time.
0 commit comments