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

Closed
rakeshvermak opened this issue Nov 5, 2024 · 5 comments · Fixed by #7282
Closed

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

rakeshvermak opened this issue Nov 5, 2024 · 5 comments · Fixed by #7282
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Milestone

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
@melloware
Copy link
Member

Duplicate of #7232

@melloware melloware marked this as a duplicate of #7232 Jan 2, 2025
@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Type: Bug Issue contains a defect related to a specific component. labels Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

This issue is a duplicate and has already been reported and possibly fixed. Please review other issues both open and closed for a similar issue to this one.

@melloware
Copy link
Member

Fixed for next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants