Skip to content

Commit

Permalink
Merge pull request #4 from DOM-Digital-Online-Media/ref/44180
Browse files Browse the repository at this point in the history
Ref #44180 Added the determination of the collapsed state also on the…
  • Loading branch information
andrew-sereda authored Mar 25, 2023
2 parents 4aabc09 + 705c69b commit 4ce50b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/Block/CollapsibleMenuBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function build() {
'#title_url' => $item['url']->toString(),
'#title_attributes' => $item['attributes']->toArray(),
'#active' => $item['in_active_trail'],
'#collapsed' => !$item['in_active_trail'],
'#collapsed' => !($item['in_active_trail'] || $item['original_link']->isExpanded()),
];
if (!empty($item['below'])) {
unset($build[$name]['#title_url']);
Expand Down

0 comments on commit 4ce50b2

Please sign in to comment.