Skip to content

Stepper no stateChanged when updateValueAndValidity #16554

Open
@keatkeat87

Description

@keatkeat87

Expected Behavior

issue2

When user submit and facing an duplicate name error, the step 1 should show error.

Actual Behavior

issue1

The step 1 no show error.

Workaround and my guess:
image

manually call this.stepper._stateChanged() can make all thing right.
so my guess is inside stepper no subscribe AbstractControl.statusChanges event.

This is just what I accidentally discovered, maybe it is a omission.
and final i used another interactive experience to avoid this problem.
so if you don't think it is a bug or feature then you can close it.

Environment

  • Angular: 8.1.1
  • CDK/Material: 8.1.1
  • Browser(s): chrome 75.x
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/stepperfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions