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

Tree: Node updates not immediately rendered when using filter + onToggle (v10.9.7 regression) #8381

Description

@james-thomson

Describe the bug

When the Tree component has both filter={true} and an onToggle callback, updates to the tree nodes are not shown in the next render. They are shown in the render after.

Reproducer

https://stackblitz.com/edit/vitejs-vite-1nwcs2oq?file=src%2FApp.tsx

System Information

primereact: 10.9.7

Steps to reproduce the behavior

  1. Click 'Change to Bar' button.
  2. 'label value' should have changed to 'Bar' but did not.
  3. Click 'Change to Foo' button.
  4. 'label value' changes to 'Bar' but should have changed to 'Foo'.

Expected behavior

Clicking the button should change the node label immediately.

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a defect related to a specific component.

Type

Fields

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions