primefaces / primefaces/primereact

[DataTable]: Row reorder not working on filtered view

Open
#7,719 3 comments 0 reactions 0 assignees View on GitHub

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
  1. Apply a status filter

Image

  1. Try to reorder the first row
Expected behavior

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.