Skip to content

Commit 5388b05

Browse files
committed
Merge branch 'hotfix/0.3.8'
2 parents bcccc1e + ad3c21c commit 5388b05

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-admin-lte",
3-
"version": "0.3.7",
3+
"version": "0.3.8",
44
"keywords": [
55
"angular",
66
"angular 4",

src/layout/sidebar-left/sidebar-left.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,13 @@ export class SidebarLeftComponent implements OnInit, AfterViewInit, OnDestroy {
156156

157157
this.subscriptions.push(this.layoutStore.isSidebarLeftExpandOnOver.subscribe((value: boolean) => {
158158
this.isSidebarLeftExpandOnOver = value;
159-
if(this.windowInnerWidth > 767) {
159+
if(this.windowInnerWidth > 767 && this.isSidebarLeftCollapsed !== undefined) {
160160
this.layoutStore.sidebarLeftCollapsed(value);
161161
}
162162
}));
163163

164164
this.subscriptions.push(this.layoutStore.isSidebarLeftCollapsed.subscribe((value: boolean) => {
165+
this.isSidebarLeftCollapsed = value;
165166
if(this.windowInnerWidth <= 767) {
166167
if(value) {
167168
this.renderer2.removeClass(this.wrapperService.wrapperElementRef.nativeElement, 'sidebar-open');

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-admin-lte",
3-
"version": "0.3.7",
3+
"version": "0.3.8",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/mika-el/angular-admin-lte"

0 commit comments

Comments
 (0)