primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.17k stars 4.55k forks source link

TreeTable Component: Expand row is collapsing if you have filtered table by Search text and expand row and then sorting. #12935

Open utkarshmittal opened 1 year ago

utkarshmittal commented 1 year ago

Describe the bug

Here are the steps to reproduce this issue:

  1. Load data to treetable and enable sorting.
  2. Allow text search on table and apply filter for any text.
  3. Now on filtered rows if you have any data which is expanded or collapsed then try to collapse expended one and expand the collapsed one.
  4. Then apply sorting and see result, whatever you did for expand and collapse is reverted.
  5. Outcome, after applying text search, expand and collapsing is not working if you apply sorting on filtered data.

Environment

It is released version which I am using in one of my POC.

Reproducer

No response

Angular version

14.2.10

PrimeNG version

14.2.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.19.1

Browser(s)

Chrome

Steps to reproduce the behavior

Here are the steps to reproduce this issue:

  1. Load data to treetable and enable sorting.
  2. Allow text search on table and apply filter for any text.
  3. Now on filtered rows if you have any data which is expanded or collapsed then try to collapse expended one and expand the collapsed one.
  4. Then apply sorting and see result, whatever you did for expand and collapse is reverted.
  5. Outcome, after applying text search, expand and collapsing is not working if you apply sorting on filtered data.

Expected behavior

It should not change its state.

cetincakiroglu commented 1 year ago

Could you please share a Stackblitz reproducer?