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: Horizontal scroll reset if item selected #6117

Open
sja-cslab opened this issue Mar 8, 2024 · 2 comments · Fixed by #6131
Open

Datatable: Horizontal scroll reset if item selected #6117

sja-cslab opened this issue Mar 8, 2024 · 2 comments · Fixed by #6131
Labels
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.

Comments

@sja-cslab
Copy link
Contributor

Describe the bug

If using a Datatable in with selectionMode="multiple" causes horizontal "scrolljump" if an Item is selected.

Reproducer

https://stackblitz.com/edit/vitejs-vite-t4glxh?file=package-lock.json,src%2FApp.jsx

PrimeReact version

10.5.1

React version

18.x

Language

ES6

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to Reproducer
  2. Resize the Preview/Webcontainer so the DatatableTable gets horizontal scrollable
  3. Scroll to the right
  4. Select an Element

=> The table resets the horizontal scroll back to completely left

Expected behavior

The Scrollposition stays the same even on select as it is on vertical scroll

@sja-cslab sja-cslab added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 8, 2024
@melloware
Copy link
Member

Duplicate of : #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 Mar 8, 2024
@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Mar 8, 2024
@sja-cslab
Copy link
Contributor Author

sja-cslab commented Aug 12, 2024

@melloware issue is still there in 10.8.2 - at least in single select could you reopen?

@melloware melloware reopened this Aug 12, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted labels Aug 12, 2024
@github-actions github-actions bot 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 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants