From 89b56e9e66bb17386617f9a0807d8db3c32dc044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Popovics=20Andr=C3=A1s?= Date: Mon, 9 Apr 2018 15:35:08 +0200 Subject: [PATCH] Fix Safari's thrown error (#3155) --- .../layout-container/layout-container.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/sidenav-layout/components/layout-container/layout-container.component.ts b/lib/core/sidenav-layout/components/layout-container/layout-container.component.ts index da09f949a0..8370e2eb17 100644 --- a/lib/core/sidenav-layout/components/layout-container/layout-container.component.ts +++ b/lib/core/sidenav-layout/components/layout-container/layout-container.component.ts @@ -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;