material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Footer border not rendered correctly when table with DetailPanel is empty

Open FlavyP opened this issue 7 years ago • 1 comments

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

  1. Take the example from here: https://mbrn.github.io/material-table/#/docz-examples-11-example-detail-panel
  2. Replace data with:
data={[
  ]}

Expected behavior Border line should be rendered on the full width of the table.

Screenshots g1 g2

Additional context Somehow increasing the "colSpan" value is fixing it. <td class="jss1775 jss1777" colspan="5" instead of 4.

FlavyP avatar Mar 20 '19 13:03 FlavyP

Thanks @FlavyP

I fixed it with version 1.25.1.

mbrn avatar Mar 20 '19 13:03 mbrn