Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable: Sometimes row reordering just doesn't work. #6998

Closed
TwilightOwl opened this issue Aug 6, 2024 · 5 comments · Fixed by #7051
Closed

DataTable: Sometimes row reordering just doesn't work. #6998

TwilightOwl opened this issue Aug 6, 2024 · 5 comments · Fixed by #7051
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@TwilightOwl
Copy link

Describe the bug

Approximatelly in 50% cases drag function just doesn't work. Sometimes you can't pick the row and drag it.

Reproducer

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

System Information

OS: MacOS Ventura 13.5.1
Browser: Google Chrome 127.0.6533.89 (arm64)
Primereact: 10.8.0
React: 18.3.1

Steps to reproduce the behavior

Go to example from official documentation DataTable -> Reorder and just try to drag and drop any row. When you've hold a row first movement must be vertical - up or down (if you try to move horizontal drag function will not work). But even when you try to move row straight up or down in 50% cases drag function just doesn't work.

Expected behavior

Dragging must work everytime you've picked up a row and move it up or down.

@TwilightOwl TwilightOwl added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 6, 2024
@melloware
Copy link
Member

I am having trouble reproducing with your StackBlitz. It works every time for me in Chrome?

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 6, 2024
@melloware
Copy link
Member

actually i see it. Looks like something is re-rendering too much on drag.

@melloware
Copy link
Member

@KumJungMin can you look at this one too?

@KumJungMin
Copy link
Contributor

KumJungMin commented Aug 14, 2024

@KumJungMin can you look at this one too?


Sorry for the late response! Would it be okay if I �check it sometime this week? @melloware

@melloware
Copy link
Member

Yes thank @KumJungMin !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants