material-table
material-table copied to clipboard
Footer border not rendered correctly when table with DetailPanel is empty
Describe the bug When having a table with detailPanel but no records, the bottom border line is not rendered correctly. As far as I looked into, it's from the "colspan" or the fact that MuiTableCell body is thinks has space for all columns except one.
To Reproduce
- Take the example from here: https://mbrn.github.io/material-table/#/docz-examples-11-example-detail-panel
- Replace data with:
data={[
]}
Expected behavior Border line should be rendered on the full width of the table.
Screenshots
Additional context
Somehow increasing the "colSpan" value is fixing it. <td class="jss1775 jss1777" colspan="5" instead of 4.
Thanks @FlavyP
I fixed it with version 1.25.1.