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

The ScrollX position reset after table data changes #401

Open
JoeWrights opened this issue Feb 22, 2023 · 1 comment
Open

The ScrollX position reset after table data changes #401

JoeWrights opened this issue Feb 22, 2023 · 1 comment

Comments

@JoeWrights
Copy link

JoeWrights commented Feb 22, 2023

Versions

package version
react X.Y.Z
rsuite-table X.Y.Z

What is the expected behavior?

give a prop to preserve scrollbar position

What is the current behavior?

The ScrollX position reset after table data changes

What are the steps to reproduce?

codesandbox

@simonguo
Copy link
Member

The rsuite version in your instance is 5.0.0, please upgrade to the latest version to try. If the problem persists, set a shouldUpdateScroll property on the Table.

<Table shouldUpdateScroll={false} />

https://table.rsuitejs.com/#update-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants