Skip to content

Commit

Permalink
fix: Nested empty MenuGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Feb 9, 2025
1 parent 96e649e commit 31752c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MenuManager/src/MenuElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public function onlyVisible(): self
$item->setItems(
$item->getItems()->onlyVisible()
);

$item->canSee(static fn() => $item->getItems()->count());
}

return $item->isSee();
Expand Down

0 comments on commit 31752c4

Please sign in to comment.