ng-admin icon indicating copy to clipboard operation
ng-admin copied to clipboard

Fix Child Menu Highlight

Open Phocea opened this issue 7 years ago • 1 comments

With previous code the parent menu gets highlighted only when the first child is active and not when any of its children are active. This change fixes that.

Phocea avatar Jun 13 '17 09:06 Phocea

Actually I am revising my idea on this. Currently active is used to checked on the parent, if the current url include the given path. In my use case, all of the child menu item have a different path with no common denominator. So using menu.isActive(path) would only work on a given one... fix for me was to use childmenu.isActive(path), but I suppose this could be done in a template, depending on the need ?

Phocea avatar Jun 14 '17 08:06 Phocea