We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d97f47 commit 7ab31a7Copy full SHA for 7ab31a7
projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.component.ts
@@ -144,6 +144,13 @@ export class SidebarNavGroupComponent implements OnInit, OnDestroy {
144
145
this.navGroupSubscription = this.sidebarNavGroupService.sidebarNavGroupState$.subscribe(next => {
146
if (this.dropdownMode === 'close' && next.sidebarNavGroup && next.sidebarNavGroup !== this) {
147
+ if (next.sidebarNavGroup.item.url.startsWith(this.item.url)) {
148
+ return;
149
+ }
150
+ if (this.samePath(this.router.routerState.snapshot.url)) {
151
+ this.openGroup(true);
152
153
154
this.openGroup(false);
155
}
156
});
0 commit comments