You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you drag the row from its original position the horizontal line nearest to the mouse pointer should be highlighted as you move up and down, indicating between what rows the row being dragged will be once you release the mouse button. See working example below:
Once you drop the row (by releasing the left mouse button) it should stick to the new position and an onRowReorder event should be emitted.
The text was updated successfully, but these errors were encountered:
saulodias
added
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Type: Bug
Issue contains a defect related to a specific component.
labels
Jul 8, 2022
Describe the bug
The feature to reorder rows on the PrimeReact DataTable is not working. The
reorderableRows
property seems to be missing.https://www.primefaces.org/primereact/datatable/reorder/
I have put together an example on Stackblitz.
https://stackblitz.com/edit/react-ts-dmlh21?file=App.tsx,DataTableReorderDemo.tsx
The feature on PrimeNG is working just fine:
https://www.primefaces.org/primeng/table/reorder
Reproducer
https://codesandbox.io/s/primereact-datatable-reorder-demo-vjk6di?file=/src/DataTableReorderDemo.tsx
PrimeReact version
8.2.0
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
Chrome 103.0.5060.114
Steps to reproduce the behavior
Expected behavior
As you drag the row from its original position the horizontal line nearest to the mouse pointer should be highlighted as you move up and down, indicating between what rows the row being dragged will be once you release the mouse button. See working example below:
Once you drop the row (by releasing the left mouse button) it should stick to the new position and an
onRowReorder
event should be emitted.See the working example on PrimeNG:
https://www.primefaces.org/primeng/table/reorder
The text was updated successfully, but these errors were encountered: