File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ export class CdkStep implements OnChanges {
170
170
return this . stepControl ? this . stepControl . valid && this . interacted : this . interacted ;
171
171
}
172
172
173
- /** Whether step has error. */
173
+ /** Whether step has an error. */
174
174
@Input ( )
175
175
get hasError ( ) : boolean {
176
176
return this . _customError || this . _getDefaultError ( ) ;
@@ -186,8 +186,7 @@ export class CdkStep implements OnChanges {
186
186
187
187
constructor (
188
188
@Inject ( forwardRef ( ( ) => CdkStepper ) ) private _stepper : CdkStepper ,
189
- @Optional ( ) @Inject ( MAT_STEPPER_GLOBAL_OPTIONS ) stepperOptions : StepperOptions
190
- ) {
189
+ @Optional ( ) @Inject ( MAT_STEPPER_GLOBAL_OPTIONS ) stepperOptions : StepperOptions ) {
191
190
this . _stepperOptions = stepperOptions ? stepperOptions : { } ;
192
191
this . _showError = ! ! this . _stepperOptions . showError ;
193
192
this . _useGuidelines = ! ! this . _stepperOptions . useGuidelines ;
@@ -386,8 +385,7 @@ export class CdkStepper implements AfterViewInit, OnDestroy {
386
385
private _getGuidelineLogic (
387
386
step : CdkStep ,
388
387
isCurrentStep : boolean ,
389
- state : StepState = STEP_STATE . NUMBER
390
- ) : StepState {
388
+ state : StepState = STEP_STATE . NUMBER ) : StepState {
391
389
if ( step . _showError && step . hasError && ! isCurrentStep ) {
392
390
return STEP_STATE . ERROR ;
393
391
} else if ( step . completed && ! isCurrentStep ) {
You can’t perform that action at this time.
0 commit comments