glittershark / reactable

Fast, flexible, and simple data tables in React
glittershark.github.io/reactable
MIT License
1.51k stars 222 forks source link

The only possible children of <Table>, are <Thead>, <Tr>, or one <Tfoot>. #270

Closed fullc0ntr0l closed 8 years ago

fullc0ntr0l commented 8 years ago

The only possible children of <Table>, are <Thead>, <Tr>, or one <Tfoot>. I'm getting the follow line in the console every time my component is rendered. my table is like this:

<Table>
     <Thead>
        <Th></Th> (more of them)
     </Thead>
    {this.state.rows.map(function)} which returns many <Tr><Td></Td></Tr> elements
</Table>

how can I get rid of these console warnings?

glittershark commented 8 years ago

Fixed as of 0.13.0

paddotk commented 8 years ago

I have Reactable 0.14.0 but still see this error, even though my tag structure is correct (not using Thead but just Tr's in my table). When I add Thead to the row with Th's, I get Uncaught TypeError: column.key.replace is not a function instead. What's going on here?

Also, what happened to Tbody? Has this taken out of Reactable?