Skip to content

Prefilled form for linear stepper doesn't allow one to click on all steps #10680

@BovineEnthusiast

Description

@BovineEnthusiast

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

A linear stepper whose associated form is populated using patchValue or setValue and is valid should allow you to click on any of the steps right away.

What is the current behavior?

I have to keep pressing the "next" button as I am restricted to clicking on steps I have visited and the one immediately after.

What are the steps to reproduce?

  1. Create a linear stepper with > 3 steps
  2. Associate the stepper with a form and each step with a form group
  3. Programmatically patch the value of the form groups associated with the steps to a valid state
  4. Not all steps on the stepper are clickable even though the form and the groups are valid

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

Saving the user's progress for a long form and returning them to the step they left off on.

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

I'm on Angular 5.2.3, Angular Material 5.2, MacOS, TS 2.4.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: 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