Browse Source

fix(theme-basic): close navbar dropdowns on window resize

pull/1567/head
TheDiaval 7 years ago
parent
commit
d49de5f88b
  1. 6
      npm/ng-packs/packages/theme-basic/src/lib/components/layout-application/layout-application.component.ts

6
npm/ng-packs/packages/theme-basic/src/lib/components/layout-application/layout-application.component.ts

@ -98,11 +98,11 @@ export class LayoutApplicationComponent implements AfterViewInit, OnDestroy {
private checkWindowWidth() {
setTimeout(() => {
this.navbarRootDropdowns.forEach(item => {
item.close();
});
if (window.innerWidth < 768) {
this.isDropdownChildDynamic = false;
this.navbarRootDropdowns.forEach(item => {
item.close();
});
} else {
this.isDropdownChildDynamic = true;
}

Loading…
Cancel
Save