-
-
Notifications
You must be signed in to change notification settings - Fork 152
Closed
Labels
Description
Hi,
I have a case when urls of child items do not start with the same path as parent's url. In this scenario item selection is not working as expected. So, is it possible to change SidebarNavHelper.isActive to something like this:
public isActive(router, item) {
const url = item.url;
if (this.itemType(item) === 'dropdown') {
if (url === '' || url === '#') {
return item.children.some((childItem: any) => this.isActive(router, childItem));
} else {
return router.isActive(url, false);
}
} else {
return router.isActive(url, true);
}
}