- πΊπΈUnited States smustgrave
https://www.drupal.org/project/drupal/issues/3412177#comment-15394504 π "is_expanded" is set to true even if "below" is an empty array Needs work Is the duplicate
It just checks:
if ($data->hasChildren && !empty($data->subtree)) {
$element['is_expanded'] = TRUE;
}
but if the menu item itself has the setting "dont show as expanded", the following twig still renders the children:
{% if item.is_expanded %}
strangely enough only if that menu item is in the active trail/ active.
Using the bootstrap theme.
Closed: duplicate
11.0 π₯
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
https://www.drupal.org/project/drupal/issues/3412177#comment-15394504 π "is_expanded" is set to true even if "below" is an empty array Needs work Is the duplicate