Components: Linear mode in stepper component doesn't work if stepControl is not set for every step

Created on 7 Jan 2018  路  2Comments  路  Source: angular/components

Bug, feature request, or proposal:

Make linear option work correctly even if there is no stepControl

What is the expected behavior?

linear option should prevent a user from skipping the steps.

What is the current behavior?

If we don't use stepControl for each step, the linear option doesn't change the behaviour of the stepper.

What are the steps to reproduce?

I modified an example app for a linear stepper to demonstrate the bug here.

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

stepControl is not a required option and some users don't use it, but still want to profit from linear option.

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

angular material 2.0.0.beta2

Is there anything else we should know?

P5 materiastepper

Most helpful comment

Is this resolved yet? Or is there a workaround?
Edit: Nevermind there is a completed bool in place

All 2 comments

Is this resolved yet? Or is there a workaround?
Edit: Nevermind there is a completed bool in place

when you don't want to use stepControl you should use completed, that gets a boolean

Was this page helpful?
0 / 5 - 0 ratings

Related issues

savaryt picture savaryt  路  3Comments

alanpurple picture alanpurple  路  3Comments

vitaly-t picture vitaly-t  路  3Comments

theunreal picture theunreal  路  3Comments

LoganDupont picture LoganDupont  路  3Comments