trendmicro-frontend / react-table

React Table component
https://trendmicro-frontend.github.io/react-table
MIT License
24 stars 8 forks source link

Expanded Row doesn't work when data length is 1 #12

Closed ashleyyang0610 closed 6 years ago

ashleyyang0610 commented 6 years ago

As title, when there's only 1 row in table (data array length = 1), expanded row doesn't work.

cheton commented 6 years ago

I cannot reproduce this issue when passing data to the table with only one row. Note that you have to use unique rowKey to distinguish different rows.

image

ashleyyang0610 commented 6 years ago

Update finding: Expand rows feature doesn't work when rowkey is 0.

cheton commented 6 years ago

Fixed in v0.8.3