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: Column resize expand mode and Stateful loses scroll #4950

Closed
savilaj opened this issue Dec 10, 2023 · 3 comments
Closed

Datatable: Column resize expand mode and Stateful loses scroll #4950

savilaj opened this issue Dec 10, 2023 · 3 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@savilaj
Copy link

savilaj commented Dec 10, 2023

Describe the bug

With stateful local or session, when restoring state you lose the scroll of the table and it is transmitted to the window.

Reproducer

https://codesandbox.io/p/devbox/funny-goldstine-ffqgzx?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clpzmzfe00009356e04um3qe2%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clpzmzfe00002356egm8h0mo1%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clpzmzfe00006356eyesbyyyr%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clpzmzfe00008356ea50cbb53%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clpzmzfe00002356egm8h0mo1%2522%253A%257B%2522id%2522%253A%2522clpzmzfe00002356egm8h0mo1%2522%252C%2522tabs%2522%253A%255B%255D%257D%252C%2522clpzmzfe00008356ea50cbb53%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clpzmzfe00007356eoxku3z2l%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A5173%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522clpzmzfe00008356ea50cbb53%2522%252C%2522activeTabId%2522%253A%2522clpzmzfe00007356eoxku3z2l%2522%257D%252C%2522clpzmzfe00006356eyesbyyyr%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clpzmzfe00003356e9x9fz4m1%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%257D%252C%257B%2522id%2522%253A%2522clpzmzfe00004356e4v0aw8ip%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522build%2522%257D%252C%257B%2522id%2522%253A%2522clpzmzfe00005356equv0gdnu%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522preview%2522%257D%255D%252C%2522id%2522%253A%2522clpzmzfe00006356eyesbyyyr%2522%252C%2522activeTabId%2522%253A%2522clpzmzfe00003356e9x9fz4m1%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

PrimeVue version

3.43.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

1 - We access the application
2 - Resize columns until the table is forced to scroll
3 - Press CTRL + F5 to force repainting
4 - table scroll is lost

Expected behavior

No response

@savilaj savilaj added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 10, 2023
@tugcekucukoglu
Copy link
Member

Thanks for the codesandbox link. I followed these steps

1 - We access the application
2 - Resize columns until the table is forced to scroll
3 - Press CTRL + F5 to force repainting
4 - table scroll is lost

and the demo seems to be working as expected.

@tugcekucukoglu tugcekucukoglu added Resolution: Cannot Replicate Issue could not be replicated by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 11, 2023
Copy link

We're unable to replicate your issue, if you are able to create a reproducer or add details please edit this issue. This issue will be closed if no activities in 20 days.

@savilaj
Copy link
Author

savilaj commented Dec 11, 2023

Follow these steps:
1 - Go to https://ffqgzx-5173.csb.app/
Screenshot_1

2 - Resize columns until the table is forced to scroll
Screenshot_2

3 - Refresc the page
Screenshot_3

4 - table scroll is lost
Screenshot_4

@savilaj savilaj closed this as completed Dec 11, 2023
@savilaj savilaj reopened this Dec 11, 2023
@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Resolution: Cannot Replicate Issue could not be replicated by Core Team labels Dec 20, 2023
@mertsincan mertsincan added this to the 3.45.0 milestone Dec 20, 2023
@mertsincan mertsincan self-assigned this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants