Skip to content

[Table] Does not trigger markForCheck with trackyBy and OnPush #10755

@keatkeat87

Description

@keatkeat87

Bug, feature request, or proposal:

Bug.

What is the expected behavior?

it should work same as ngFor + trackby + onPush

What is the current behavior?

not trigger markForCheck

What are the steps to reproduce?

https://stackblitz.com/edit/angular-pbw1ew?file=app%2Fwrap-table%2Fwrap-table.component.html
you can open the ngFor comment link and hide material table to look the different. ngFor will work as expected.
image

What is the use-case or motivation for changing an existing behavior?

more easy to use and understand.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

ng 5.2.9,
material 5.2.4

Is there anything else we should know?

i don't know this is a bug or by design and this is my first time to submit issues.
if anything i m go wrong, please let me know and sorry about that.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions