Skip to content

Conversation

@RolT
Copy link
Contributor

@RolT RolT commented Nov 27, 2025

Fixes #8408

Copy link
Contributor

@Coderxrohan Coderxrohan left a comment

Choose a reason for hiding this comment

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

Issue
expandedKeys were being reset when a filter input was present, even if the filter was empty, causing nodes to collapse unexpectedly on init and model updates.

Fix
Filter-related expanded keys are now toggled only when the filter is actually used, preserving the original tree state otherwise.

Impact
Initial render and runtime updates behave correctly; expanded state is no longer lost when the filter is empty.

⭐ Rating: 5/5

@melloware melloware merged commit 68353a0 into primefaces:master Jan 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tree: Bad initialization of expanded keys when filter option is present

3 participants