facebookarchive / fixed-data-table

A React table component designed to allow presenting thousands of rows of data.
http://facebook.github.io/fixed-data-table/
Other
4.3k stars 553 forks source link

check boxes to select rowData #422

Closed ryan-hamblin closed 8 years ago

ryan-hamblin commented 8 years ago

I'm running into an issue where I need to be able to select (by checkbox) the row data and from there, group the checked rows into new groups. The issue is that when I click on the checkbox, I don't have access to the onRowClick data that I set before the checkbox is changed. I do however, have access to onRowClick's row data when I click on an onClick handler in a cell. I can provide code snippets if necessary to see what's going on, but the issue is clear that for some reason the onChange event is firing off before the onRowClick event. I bet I could just wrap the call in a setTimeout but I'm wondering if anyone else has run into this issue and has a workaround?

ryan-hamblin commented 8 years ago

I figured this out. PM me if you get stuck on this. It was more trivial than I was thinking it would be.