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: Search results are not updated when new data is added #15193

Closed
LinkTheFirstFlame opened this issue Mar 28, 2024 · 1 comment · Fixed by #15397
Closed

Tree: Search results are not updated when new data is added #15193

LinkTheFirstFlame opened this issue Mar 28, 2024 · 1 comment · Fixed by #15397
Labels
LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@LinkTheFirstFlame
Copy link
Contributor

Describe the bug

If the tree is filtered by a search and it's data is updated, the search result won't display the new matching data unless the search term is updated.

Environment

Angular 17 application

Reproducer

https://stackblitz.com/edit/ynxmdk?file=src%2Fapp%2Fdemo%2Ftree-filter-demo.html,src%2Fapp%2Fdemo%2Ftree-filter-demo.ts

Angular version

17

PrimeNG version

17.12.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

10.2.3

Browser(s)

Chrome 123

Steps to reproduce the behavior

  1. Go on https://stackblitz.com/edit/ynxmdk?file=package.json
  2. Search for "file" in the tree
  3. Click on "Append data" button
  4. Change the search term
    tree-search-fitler

Expected behavior

The tree should call the _filter function whenever the given data is updated without updating the search term.

@LinkTheFirstFlame LinkTheFirstFlame added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 28, 2024
@kheos31
Copy link
Contributor

kheos31 commented Apr 3, 2024

Same behaviour on our product, tree should refresh filter if new nodes are received from input

@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 3, 2024
@cetincakiroglu cetincakiroglu added this to the 17.16.0 milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants