-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentationRelated to the documentationarea: material/stepper
Description
Bug, feature request, or proposal:
Bug
What is the expected behaviour?
Stepper is linear and doesn't produce the below error.
What is the current behavior?
Stepper component throws errors when linear parameter is set to true.
Tested with dynamically generated steps and non-dynamic steps and same error occurs.
ERROR TypeError: Cannot read property 'invalid' of undefined
at eval (VM808 cdk-stepper.umd.js:375)
at Array.some (<anonymous>)
at MatHorizontalStepper.CdkStepper._anyControlsInvalid (VM808 cdk-stepper.umd.js:375)
at MatHorizontalStepper.set [as selectedIndex] (VM808 cdk-stepper.umd.js:206)
at MatHorizontalStepper.set [as selected] (VM808 cdk-stepper.umd.js:230)
at MatStep.CdkStep.select (VM808 cdk-stepper.umd.js:125)
at Object.eval [as handleEvent] (VM994 MatHorizontalStepper.ngfactory.js:26)
at handleEvent (VM801 core.umd.js:12055)
at callWithDebugContext (VM801 core.umd.js:13525)
at Object.debugHandleEvent [as handleEvent] (VM801 core.umd.js:13113)
at dispatchEvent (VM801 core.umd.js:8647)
at eval (VM801 core.umd.js:9258)
at HTMLElement.eval (VM791 platform-browser.umd.js:2685)
at e.invokeTask (VM1088 zone.min.js:1)
at Object.onInvokeTask (VM801 core.umd.js:3913)
What are the steps to reproduce?
Recreated basic Stepper component in this plunker with a few example:
http://plnkr.co/edit/mES0H2nKfYjfcrUOHexz
What is the use-case or motivation for changing an existing behavior?
N/A
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular/material 2.0.0-beta.12
Is there anything else we should know?
Melanie-M, nhthuan and pppdns
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentationRelated to the documentationarea: material/stepper