Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree: The Tree component's collapse functionality is not working #7392

Open
rakeshvermak opened this issue Nov 5, 2024 · 2 comments
Open
Labels
Type: Bug Issue contains a defect related to a specific component.

Comments

@rakeshvermak
Copy link

Describe the bug

Collapse is not working after Search operation

Reproducer

https://stackblitz.com/edit/vitejs-vite-tqykhs?file=src%2Fservice%2FNodeService.jsx,src%2FApp.jsx

System Information

primereact version: 10.5.3
react version: 17.x

Steps to reproduce the behavior

Go to Tree Node view.
Search for some text in the search bar.
Tree expands with data of all folders.
If we want to collapse other than our folders to see all the data. It is not working. We are unable to collapse the project tree.

Expected behavior

It is expected to collapse the project tree node when search operation is performed.

@rakeshvermak rakeshvermak added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 5, 2024
@rakeshvermak
Copy link
Author

Screenshot attached for your reference.
image

@melloware
Copy link
Member

melloware commented Nov 5, 2024

Confirmed it doesn't work on the showcase either: https://primereact.org/tree/#filter

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants