primefaces / primefaces/primereact
[DataTable]: Row reorder not working on filtered view
Open
Nobody has claimed this yet.
Type: Bug
- Dominant language
- CSS
- Stars
- 8.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Cannot reorder a row if a filter is applied.
Reproducer
https://stackblitz.com/edit/haefs839-zgg699df?file=src%2FApp.jsx
System Information
primereact: 10.9.2
Steps to reproduce the behavior
- Apply a status filter
- Try to reorder the first row
Expected behavior
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the linked StackBlitz reproducer and reproduce the DataTable behavior by applying a status filter, then trying to reorder the first row. Compare row reordering with and without the filter; done means filtered rows can be reordered without the reported failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100