Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

fix(Tree): only toggle 'filter' expanded keys when the filter is used#8409

Merged
melloware merged 1 commit into
primefaces:masterfrom
RolT:fix-tree-filter
Jan 4, 2026
Merged

fix(Tree): only toggle 'filter' expanded keys when the filter is used#8409
melloware merged 1 commit into
primefaces:masterfrom
RolT:fix-tree-filter

Conversation

@RolT

@RolT RolT commented Nov 27, 2025

Copy link
Copy Markdown
Contributor

Fixes #8408

@Coderxrohan Coderxrohan left a comment

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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