Skip to content

Commit

Permalink
Enforce group destination null state when adding children
Browse files Browse the repository at this point in the history
Provides a consistent state
  • Loading branch information
caendesilva committed Feb 29, 2024
1 parent fa9c01d commit f1d9ca7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public function addChild(NavItem $item): static
$item->group ??= $this->group;

$this->children[] = $item;
$this->destination = null;

return $this;
}
Expand Down

0 comments on commit f1d9ca7

Please sign in to comment.