Skip to content

mat-stepper [optional] not working / broken  #9239

@ztgluis

Description

@ztgluis

Bug: Setting a step to Optional is not working correctly when containing a form with validators

What is the expected behavior?

Should be able to continue through a optional step if a form is not completed but set as optional.

What is the current behavior?

Can't continue past an optional step without filling the form.

What are the steps to reproduce?

What is the use-case or motivation for changing an existing behavior?

Version 5.0.1 of Material was working as described/expected, upgrading to 5.0.3 breaks this functionality rendering the 'optional' property useless.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Tested on Angular 5.1.3, Material 5.0.3

Is there anything else we should know?

Worked as expected in Material 5.0.1
I believe the issue was introduces by this PR:
#8646

Metadata

Metadata

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions