angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.35k stars 6.74k forks source link

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

Open Exocomp opened 5 years ago

Exocomp commented 5 years ago

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

jelbourn commented 3 years ago

This is potentially a solution for #14067

angular-robot[bot] commented 2 years ago

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] commented 2 years ago

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

sagrawal31 commented 2 years ago

Any update on this?