Skip to content

fix: Navigation group enum respects collapsible() when collapsed#20055

Open
people-sea wants to merge 2 commits into
filamentphp:4.xfrom
people-sea:fix/issues/20054
Open

fix: Navigation group enum respects collapsible() when collapsed#20055
people-sea wants to merge 2 commits into
filamentphp:4.xfrom
people-sea:fix/issues/20054

Conversation

@people-sea

@people-sea people-sea commented Jun 18, 2026

Copy link
Copy Markdown
Member

Description

Fixes: #20054

collapsed() also sets the collapsible state, so calling it after collapsible() in fromEnum() overwrote the enum's isCollapsible(). Swap the order.

Visual changes

Before

image

After

image

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@github-project-automation github-project-automation Bot moved this to Todo in Roadmap Jun 18, 2026
@people-sea people-sea marked this pull request as ready for review June 18, 2026 09:29

@danharrin danharrin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a regression test for this please?

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Roadmap Jun 19, 2026
@danharrin danharrin added bug Something isn't working pending changes labels Jun 19, 2026
@danharrin danharrin added this to the v4 milestone Jun 19, 2026
@people-sea

Copy link
Copy Markdown
Member Author

Done, thanks!

@people-sea people-sea requested a review from danharrin June 19, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working pending changes

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

NavigationGroup::fromEnum doesn't use Collapsible interface correctly

2 participants