primereact
primereact copied to clipboard
[DataTable]: drag selection is enabled automatically when enabling rows reorder
Describe the bug
Enabling rows reorder makes the drag selection active and there is not way to disable it.
Reproducer
https://stackblitz.com/edit/gu8bylvi?file=src%2FApp.jsx
System Information
primereact: 10.9.1
Steps to reproduce the behavior
No response
Expected behavior
No response
This may be a dumb question but don't you need to be able to drag the rows to re-order them?
@melloware You're correct but the issue here is something else.
The datatable has singleSelection set but as soon as you enable reorder, the table uses drag-multiselect so it enables the dragSelection property.
Right @sja-cslab, multiple rows can be selected by dragging a row even if the selection mode is Single (cf: screenshot).
Could you try that with primereact 10.9.2? We had some changes in the Datatable-Component around multi selection
The reproducer uses the version 10.9.2 of primereact
OK marked as bug!