Skip to content

v2.0.0

Choose a tag to compare

@feskol feskol released this 13 Feb 03:27
· 20 commits to main since this release
fcd0881

What's Changed

⚠ Behavior Change: ⚠
Refactored the Active-Status propagation. Previously, active status was propagated upwards—meaning if a child link was
active, its parent was also considered active. This behavior made it difficult to determine which link was actually
active, as multiple links could appear active simultaneously.

To resolve this issue, only links explicitly marked as active using the setIsActive() method will now have an active
status of true. However, to maintain the ability to check if a navigation contains active links, a new
hasActiveChildren() method has been introduced.

  • Added hasActiveChildren() method to Link: Allows checking if a link has active children. by @feskol in #2
  • Added setTargetBlank() method to Link: Common use by @feskol in #2
  • LinkInterface now extends HierarchicalLinkInterface by @feskol in #2

Full Changelog: v1.0.0...v2.0.0