Skip to content

Bug: Select doesn't have initial value when change detection set to onPush #2269

Closed

Description

@goldenbearkin

Bug, feature request, or proposal:

Bug

What is the expected behavior?

should show the initial value set by form builder.

e.g.

this.form = this.fb.group({
      name: 'angular',
      sex: 'F'
    });

What is the current behavior?

when change detection set to onPush, Select shows empty value.

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://plnkr.co/edit/G8ueOSwYMCZTigydRHbs

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

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

Is there anything else we should know?

Activity

  1. elvirdolic commented on Dec 18, 2016

    @elvirdolic

    Have the same issue also with ngModel and template driven form

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

    @DmitryEfimenko

    I believe this came back.
    Here is plunker showing it
    Should I open a new issue?

  7. added a commit that references this issue on Mar 8, 2017
  8. added a commit that references this issue on Apr 16, 2017
  9. 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.

  10. 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