-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(table): error if row definition is on an ng-container #12462
Conversation
src/lib/table/table.spec.ts
Outdated
</ng-container> | ||
|
||
<mat-header-row *matHeaderRowDef="columnsToRender"></mat-header-row> | ||
<ng-container *matRowDef="let row; columns: columnsToRender"></ng-container> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What even gets rendered when you do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I omitted the empty mat-row
to keep the test more concise, but if I have it renders as it's supposed to. It's based on this: https://stackblitz.com/edit/angular-5vkqs1?file=app/table-pagination-example.html. I'll re-add the mat-row
to keep it closer to the real scenario.
Fixes the table throwing an error if the row definitions are on an `ng-container`. Fixes angular#12460.
30a7dc5
to
a46f5a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes the table throwing an error if the row definitions are on an `ng-container`. Fixes #12460.
Fixes the table throwing an error if the row definitions are on an `ng-container`. Fixes #12460.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes the table throwing an error if the row definitions are on an
ng-container
.Fixes #12460.