You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click on the top-left-most header cell (the "select all" cell).
Actual behavior
Selection does not change from it's current state.
Expected behavior
Selection is set to "all cells".
Commenting out the this.setState line causes selection to behave as expected again. Wrapping this.setState in a zero-duration setTimeout also causes selection to behave as expected. Looks like some kind of synchronicity/deferral issue?
Confusingly, all other types of selection work (entire-row, entire-column, single-cell, multiple-cell).
The text was updated successfully, but these errors were encountered:
cmslewis
changed the title
table: wrapped table with onSelection listener doesn't allow select-all
[Table] wrapped table with onSelection listener doesn't allow select-all
Jun 14, 2017
Man, I'm just not seeing what's going on with this one. For some reason, when selectAll() invokes Table.handleSelection (a private helper), the state is not updated before componentWillReceiveProps is invoked.
Fortunately, passing the selectedRegions back into Table in a controlled fashion fixes the issue.
Bug report
Steps to reproduce
Using this table-containing component:
Actual behavior
Expected behavior
Commenting out the
this.setState
line causes selection to behave as expected again. Wrappingthis.setState
in a zero-durationsetTimeout
also causes selection to behave as expected. Looks like some kind of synchronicity/deferral issue?Confusingly, all other types of selection work (entire-row, entire-column, single-cell, multiple-cell).
The text was updated successfully, but these errors were encountered: