linear stepper add attribute skippable. #17206
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
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.
The text was updated successfully, but these errors were encountered: