primefaces / primefaces/primereact
DataTable: Reorderable Column Drop Effect Incorrect When Hovering Table Body
Nobody has claimed this yet.
- 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.
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
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
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