primereact
primereact copied to clipboard
DataTable: Column Reorder Indicator Incorrect
Describe the bug
When reordering columns, the indicator icon will sometimes show up in the incorrect position
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
- Drag the Code column over the Name column
- 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
- 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