React-table: autoResetSelectedRows does not seem to be working correctly

Created on 15 Jan 2020  路  2Comments  路  Source: tannerlinsley/react-table

I am using v7 and have a table using useRowSelect and although autoResetSelectedRows defaults to true, I am changing data on a controlled table (e.g. filtering data and getting new data from the server), yet the checkboxes are not clearing/reseting. I would expect the checkboxes to clear in this instance.

Most helpful comment

This is fixed in master and slated for release. Thanks for your help everyone!

All 2 comments

OS : MacOS HighSierra (10.13.6)
Browser: Google Chrome Version 79.0.3945.117 (Official Build) (64-bit)

I am having the same issue on v7.0.0-rc11.
I am deleting on the rows that are selected and then reload the data but the checkboxes are not being reset, instead checkboxes are selected to same index of previously deleted/selected rows.
Behavior is correct only when there are only 2 rows and 1 of them is deleted.

UPDATE: Same issue also applied to expanded row.

ezgif com-video-to-gif

This is fixed in master and slated for release. Thanks for your help everyone!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nizar-Rahme picture Nizar-Rahme  路  21Comments

visarts picture visarts  路  36Comments

nikhilem picture nikhilem  路  27Comments

vaidsu picture vaidsu  路  29Comments

IPessers picture IPessers  路  20Comments