Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linear stepper add attribute skippable. #17206

Open
TonyFoster opened this issue Sep 26, 2019 · 3 comments
Open

linear stepper add attribute skippable. #17206

TonyFoster opened this issue Sep 26, 2019 · 3 comments
Labels
area: cdk/stepper area: material/stepper feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions
Projects

Comments

@TonyFoster
Copy link

TonyFoster commented Sep 26, 2019

Feature Description

Although optional step are already skippable, but you can skip it with invalid input. I hope there is an attribute that make step are skippable when it has a valid input(can be auto fill).

Use Case

I have a form that use to post something. And user are quite often to have a post. And the form have max in 11 steps. And I don't want user visit all autofill step in every time. But I don't want accept invalid values cause I set step to optional.

When I using approach:
[optional]="step.vaild"
It's works, But "optional" will show up on the screen when user fill up the step. it's kinda weird.

Because I was using same form for user edit their post. In this scenario, all step are autofilled and valid. When user edit some step, the stepper must set to linear to prevent user send invalid values. This make all step no skippable, until step by step start again. So I have to set every step interacted= true in order to allow user skip all valid step which already posted, autofilled, valid and just edit some step base on their needs. And I can't use optional, cause that will allow invalid inputs.

So I hope there is a new attribute "skippable" with only behavior which allow step can be skip when it's valid.

@TonyFoster TonyFoster added the feature This issue represents a new feature or feature request rather than a bug or bug fix label Sep 26, 2019
@mmalerba mmalerba added the needs triage This issue needs to be triaged by the team label May 20, 2020
@devversion
Copy link
Member

Hello! I think this is a reasonable feature request. I think we'd need to think how we can disambiguate the names as optional and skippable seem very closely related. Ideally we'd come up with something better. e.g.. optional by default does not allow invalid form groups, unless someone explicitly opts out.

Additionally, I think it would be great if the stpeper would not allow editing if editable is set to false. It currently still allows that for once until interacted is set to true. That seems wrong to me.

@devversion devversion added area: cdk/stepper area: material/stepper P4 A relatively minor issue that is not relevant to core functions and removed needs triage This issue needs to be triaged by the team labels May 28, 2020
@devversion devversion added this to Triaged in triage #1 via automation May 28, 2020
@angular-robot
Copy link
Contributor

angular-robot bot commented Feb 21, 2022

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
Copy link
Contributor

angular-robot bot commented Mar 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: cdk/stepper area: material/stepper feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions
Projects
No open projects
triage #1
  
Triaged
Development

No branches or pull requests

4 participants