primereact icon indicating copy to clipboard operation
primereact copied to clipboard

DataTable: Column Reorder Indicator Incorrect

Open ssode opened this issue 1 year ago • 0 comments

Describe the bug

When reordering columns, the indicator icon will sometimes show up in the incorrect position

image

Reproducer

https://stackblitz.com/edit/optnbv?file=src%2FApp.jsx

PrimeReact version

10.6.5

React version

18.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Drag the Code column over the Name column
  2. Observe that while dragging over the left half of the Name column, the indicator is shown to the left of the column containing the row reorder icons
  3. Drop the column at that position and observe that the Code column is now to the right of the Name column as expected

Expected behavior

The column reorder indicator should always be displayed to the right of the Name column when hovering over it

ssode avatar May 06 '24 17:05 ssode