Skip to content

stepper: add ability to reset a step's form validation when moving to another step #7292

Open
@daniele-zurico

Description

@daniele-zurico

Bug, feature request, or proposal:

proposal/bug

What is the expected behavior?

Make the ability to control the content of the form to the developer and put the next and previous button static.

What is the current behavior?

a form Control is required. And the prev and next button are built with directives.
Why the step should require a form inside and I'm not free to put whatever I want inside?

Example:
https://plnkr.co/edit/7QCrrhAhPFi4APLazxH6?p=preview

  1. Arrive to the third step (it require validation) go back, the form is not reset, it still show the error. (I call form.reset())

  2. You forced to say linear=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/stepperarea: material/stepperfeatureThis issue represents a new feature or feature request rather than a bug or bug fixformsThis issue is related to Angular Forms integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions