Fix Safari's thrown error (#3155)

This commit is contained in:
Popovics András
2018-04-09 15:35:08 +02:00
committed by Eugenio Romano
parent 813d189ae4
commit 89b56e9e66

View File

@@ -28,7 +28,10 @@ import { sidenavAnimation, contentAnimation } from '../../helpers/animations';
export class LayoutContainerComponent implements OnInit, OnDestroy {
@Input() sidenavMin: number;
@Input() sidenavMax: number;
@Input() mediaQueryList: MediaQueryList;
// " | any", because Safari throws an error otherwise...
@Input() mediaQueryList: MediaQueryList | any;
@Input() hideSidenav = false;
@Input() expandedSidenav = true;