Issue with row selection when autoResetSelectedRows is set to false. #3990
Unanswered
Ramnath2609
asked this question in
Q&A
Replies: 2 comments
-
I am also facing the similar issue. Do we have any solution for this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
same issue workarounds are supper buggy by having to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I have an initial set of data. Suppose I select row number 3 and 4. And then if the data changes the rows 3 and 4 will still be selected even after data has changed, since autoResetSelectedRows is set to false. Selected rows are maintained by indices. Hence, irrespective of data changes it still selects the particular row index.
Your minimal, reproducible example
https://codesandbox.io/s/github/tannerlinsley/react-table/tree/v7/examples/row-selection?file=/src/App.js
Steps to reproduce
Expected behavior
It will be better if we can provide unique custom ids for selected rows instead of maintaining it as indices.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
-OS - Windows
-Browser - Google Chrome
react-table version
v7.7.0
TypeScript version
v4.4.4
Additional context
No response
Terms & Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions