Skip to content

Conversation

@Phocea
Copy link
Contributor

@Phocea Phocea commented Jun 13, 2017

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.

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
Copy link
Contributor Author

Phocea commented Jun 14, 2017

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 ?

@marmelab marmelab deleted a comment Sep 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants