@coreui/angular 4.2.16 → 4.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7627,6 +7627,13 @@ class SidebarNavGroupComponent {
7627
7627
  }
7628
7628
  this.navGroupSubscription = this.sidebarNavGroupService.sidebarNavGroupState$.subscribe(next => {
7629
7629
  if (this.dropdownMode === 'close' && next.sidebarNavGroup && next.sidebarNavGroup !== this) {
7630
+ if (next.sidebarNavGroup.item.url.startsWith(this.item.url)) {
7631
+ return;
7632
+ }
7633
+ if (this.samePath(this.router.routerState.snapshot.url)) {
7634
+ this.openGroup(true);
7635
+ return;
7636
+ }
7630
7637
  this.openGroup(false);
7631
7638
  }
7632
7639
  });
@@ -7661,6 +7668,10 @@ class SidebarNavGroupComponent {
7661
7668
  }
7662
7669
  }
7663
7670
  onAnimationDone($event) {
7671
+ if ($event.toState === 'open') {
7672
+ const host = this.sidebarNav.nativeElement;
7673
+ this.renderer.setStyle(host, 'height', 'auto');
7674
+ }
7664
7675
  if ($event.toState === 'closed') {
7665
7676
  setTimeout(() => {
7666
7677
  this.display = null;