Search on mobile opens Sidemenu (#929)

* Added a check for mobile pages to prevent sidemenu opening
This commit is contained in:
MariusGrunenberg
2019-02-12 11:37:39 +01:00
committed by Denys Vuika
parent ad1d2633c4
commit aa4f81118f

View File

@@ -155,7 +155,9 @@ export class AppLayoutComponent implements OnInit, OnDestroy {
private updateState() {
if (this.minimizeSidenav && !this.layout.isMenuMinimized) {
this.layout.isMenuMinimized = true;
this.layout.container.toggleMenu();
if (!this.layout.container.isMobileScreenSize) {
this.layout.container.toggleMenu();
}
}
if (!this.minimizeSidenav) {