Skip to content

Commit 21c1079

Browse files
committed
fix(material/table): using columnsToDisplay length for colspan attribute
1 parent b5fb4ab commit 21c1079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components-examples/material/table/table-expandable-rows/table-expandable-rows-example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<!-- Expanded Content Column - The detail row is made up of this one column that spans across all columns -->
1919
<ng-container matColumnDef="expandedDetail">
20-
<td mat-cell *matCellDef="let element" [attr.colspan]="columnsToDisplay.length">
20+
<td mat-cell *matCellDef="let element" [attr.colspan]="columnsToDisplayWithExpand.length">
2121
<div class="example-element-detail"
2222
[@detailExpand]="element == expandedElement ? 'expanded' : 'collapsed'">
2323
<div class="example-element-diagram">

0 commit comments

Comments
 (0)