Skip to content

Conversation

@crisbeto
Copy link
Member

Fixes the table throwing an error if the row definitions are on an ng-container.

Fixes #12460.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Jul 31, 2018
@crisbeto crisbeto requested a review from andrewseguin as a code owner July 31, 2018 18:21
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 31, 2018
</ng-container>
<mat-header-row *matHeaderRowDef="columnsToRender"></mat-header-row>
<ng-container *matRowDef="let row; columns: columnsToRender"></ng-container>
Copy link
Member

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?

Copy link
Member Author

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.
@crisbeto crisbeto force-pushed the 12460/sticky-styler-error branch from 30a7dc5 to a46f5a1 Compare August 1, 2018 05:17
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Aug 1, 2018
@jelbourn jelbourn merged commit ef57919 into angular:master Aug 3, 2018
jelbourn pushed a commit that referenced this pull request Aug 7, 2018
Fixes the table throwing an error if the row definitions are on an `ng-container`.

Fixes #12460.
jelbourn pushed a commit that referenced this pull request Aug 7, 2018
Fixes the table throwing an error if the row definitions are on an `ng-container`.

Fixes #12460.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Table: ERROR TypeError: Cannot set property 'left' of undefined

3 participants