Skip to content

ChangeDetectionStrategy.OnPush problem #2663

Closed
@IliaIdakiev

Description

@IliaIdakiev

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When using ChangeDetectionStrategy.OnPush the md-select value is cleared when ngModel variable is set to null

What is the current behavior?

ngModel is null but md-select value persists

What are the steps to reproduce?

https://plnkr.co/edit/RGEWSXblOySdltKBku9o?p=preview

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

Application Performance Optimization

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

Angular v2.4.3
Angular Material v2.0.0-beta.1

Is there anything else we should know?

Maybe there are other controls not working with ChangeDetectionStrategy.OnPush

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions