diff --git a/Resources/views/layout/macros.html.twig b/Resources/views/layout/macros.html.twig index 06d90fab..69dbad11 100644 --- a/Resources/views/layout/macros.html.twig +++ b/Resources/views/layout/macros.html.twig @@ -37,7 +37,13 @@ {% macro menu_item(item) %} {% if item.route or item.hasChildren %} -
  • + {% set childIsActive = false %} + {% for child in item.children %} + {% if child.isActive %} + {% set childIsActive = true %} + {% endif %} + {% endfor %} +
  • {% if item.icon %} {% endif %} {{ item.label }}