Skip to content

FormGroup & FormControl statusChanges are not emitted on creation #14542

@MickL

Description

@MickL

I'm submitting a ...

[X] bug report
[ ] feature request
[ ] support request

Current behavior
FormGroup and FormControl don't emit statusChange after first creation (while untouched / pristine?) with asyncValidator.

  1. Initial status of FormGroup and FormControl is "PENDING"
  2. Both status changes to "VALID" or "INVALID"
  3. statusChange is not emitted

Expected behavior
statusChange should always be emitted.

Minimal reproduction of the problem with instructions

  1. Create a FormGroup with the FormBuilder and add a FormControl with asyncValidator(e.g. with a TimeOut Promise of 2sec).
  2. Subscribe to FormGroup.statusChange or FormGroup.controls.key.statusChange

Angular version
2.4.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions