primefaces / primefaces/primereact

DataTable: Reorderable Column Drop Effect Incorrect When Hovering Table Body

Open
#6,634 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Triage
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

When you have reorderableColumns enabled, dragging one of the column headers over the rows in the table body shows the 'move' drop effect/icon instead of the disabled icon that shows when you do something like drag the header outside of the table entirely.

reorder-columns

Reproducer

https://stackblitz.com/edit/arlygc?file=src%2FApp.tsx

PrimeReact version

latest

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

The same disabled icon should be shown when dragging the header over table rows as it can't be dropped there.

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

Start with the linked StackBlitz reproducer at src/App.tsx and confirm the drop effect while dragging a reorderable column header over table rows. Trace the DataTable column-drag behavior in the repository; done means the disabled icon appears over the table body, matching the behavior outside the table.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
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.