Skip to content

ChangeDetectionStrategy.OnPush problem #2663

Closed

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

Activity

  1. added
    P3
    on Jan 27, 2017
  2. added a commit that references this issue on Feb 1, 2017
    1dba3d3
  3. added a commit that references this issue on Feb 1, 2017
    930f55f
  4. added a commit that references this issue on Feb 9, 2017
    3bcb7c3
  5. farin99 commented on Mar 10, 2017

    @farin99

    I still see this bug in beta.2 when using reactive forms.

  6. mjolk commented on Mar 30, 2017

    @mjolk

    I'm seeing the same, beta.2/angular 4.0.0 reactive forms with ChangeDetectionStrategy.OnPush still exhibits this behaviour. Is there a temporary quickfix?

  7. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions