primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.79k stars 1.04k forks source link

Datatable: Reorder+Filter #4919

Open thejus557 opened 1 year ago

thejus557 commented 1 year ago

Describe the bug

Hey, we should have a flag to prevent the reorder when filter is applied.

Reproducer

No response

PrimeReact version

9.4.0

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

thejus557 commented 1 year ago

@melloware If you have any idea on how to prevent the reorder when filter is applied ?.

melloware commented 1 year ago

Hmmm I would have look but you are saying once you have filtered the table that re-ordering rows makes no sense right?

suryateja-kandukuru commented 1 year ago

Yes reordering wouldnt make sense. We have to disable reordering when filter is applied.

melloware commented 1 year ago

OK I marked as new feature and for discussion with PrimeTek. We should also check what PrimeNG or PrimeVue does in case they have already implemented such a feature.

thejus557 commented 1 year ago

Just checked the primeng, it also has the same issue.