Skip to content

Allow interacted field of matStep in the stepper control to be editable via property binding #14724

Open
@Exocomp

Description

@Exocomp

Please describe the feature you would like to request.

The interacted field of the matStep (https://material.angular.io/components/stepper/api) is currently not decorated with @input() therefore it is not possible to use property binding to modify it.

What is the use-case or motivation for this proposal?

Calling the Stepper Previous() or Next() method ends up calling "CdkStepper.prototype._anyControlsInvalidOrPending" where there is a check for "!step.interacted". I have a use case where I populate the steps and then set a particular step as the selected step. At that point when I call next or previous since the steps interacted field is false by default I'm not able to go backward or forward through the stepper.

At the moment my only way to solve this issue is to iterate the stepper's "_steps" and set the "interacted" field to true. This is not an ideal solution.

Is there anything else we should know?

Version: 7.2.0

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