[BUG] DataTable column reorder in wrong order #2225
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
CodeSandbox Case (Bug Reports)
https://www.primefaces.org/primevue/#/datatable/reorder
Current behavior
If you drag a column header, it will always reorder the dragged column BEFORE the column drop target.
Expected behavior
It should reorder before the drop target only when the mouse is closer to the left border than right border in the drop target
Minimal reproduction of the problem with instructions
Please see animation illustrating the problem. In the scenario of the screencast, you would have expected the column order to be : Category, Name, Code Quantity not Name, Category, Code, Quantity as the Name column was dropped between Category and Code.
What is the motivation / use case for changing the behavior?
Fixing the bug
PrimeVUE.Mozilla.Firefox.2022-03-01.11-03-37.mp4
The text was updated successfully, but these errors were encountered: