TableFooter not showing it's descendants correctly if adjustForCheckbox is set to false
Problem description
TableFooter not showing it's descendants correctly if adjustForCheckbox is set to false.
Steps to reproduce
Create a component that renders a Table, within a TableFooter.
Versions
- Material-UI: 0.15.1
- React: 15.1.0
- Browser: Google Chrome
Code example:
<Table
selectable={false}
>
<TableHeader adjustForCheckbox={false} displaySelectAll={false}>
<TableRow>
<TableHeaderColumn>
Header Column 1
</TableHeaderColumn>
</TableRow>
</TableHeader>
<TableBody displayRowCheckbox={false}>
<TableRow>
<TableRowColumn>
Column 1
</TableRowColumn>
</TableRow>
</TableBody>
<TableFooter adjustForCheckbox={false}>
<TableRow>
<TableRowColumn>
Foobar
</TableRowColumn>
</TableRow>
</TableFooter>
</Table>
@Serfenia
adjustForCheckbox is a TableHeader property.
It is not in the documentation, but it is in the propTypes though. And if you set it, the render output is different so, it should work nonetheless in my opinion. The pull request I made fixes it.
On top of that the property should be there otherwise you'd have to style the TableFooter component manually in such away that is has the same effect as the TableHeader
@Serfenia okay !
This bug is already three months as open and has PR with the fix. Can someone to check it and merge it?