rsuite / rsuite-table

A React table component.
https://table.rsuitejs.com/
MIT License
721 stars 133 forks source link

The ScrollX position reset after table data changes #401

Open JoeWrights opened 1 year ago

JoeWrights commented 1 year ago

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 commented 1 year ago

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

anitha-me commented 1 month ago

@JoeWrights, Found any workarounds or solutions ?