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: using a checkbox column causes abnormal behavior in the horizontal scrollbar. #4362

Closed
fx-2 opened this issue May 9, 2023 · 3 comments · Fixed by #6131
Closed
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted

Comments

@fx-2
Copy link

fx-2 commented May 9, 2023

Describe the bug

In the DataTable component's Row Selection checkbox example, even when setting selectionMode to {null}, it appears that clicking on a row still triggers changes in the checkbox cell. As a result, when there's a horizontal scrollbar in the DataTable, clicking a row causes the scrollbar to reset to its starting position.

Reproducer

https://codesandbox.io/s/rvjdmq?file=/package.json

PrimeReact version

9.3.1

React version

17.x

Language

ES6

Build / Runtime

Create React App (CRA)

Browser(s)

Chrome 112.0.5615.137

Steps to reproduce the behavior

  1. Drag the horizontal scrollbar
  2. Click on a row of data

Expected behavior

No response

@fx-2 fx-2 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 9, 2023
@melloware
Copy link
Member

Is this a duplicate of this: #3155 ???

@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 11, 2023
@fx-2
Copy link
Author

fx-2 commented May 15, 2023

Is this a duplicate of this: #3155 ???

Yes,It's the same issue.

@melloware
Copy link
Member

@fx-2 thanks go upvote that ticket and I will close this one as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants