Skip to content

Commit c84b1dc

Browse files
committed
fix(datepicker): update validation when switching from null to error
input
1 parent 058f5ef commit c84b1dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/datepicker/datepicker-input.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ export class MatDatepickerInput<D> implements ControlValueAccessor, OnDestroy, V
329329
this._cvaOnChange(date);
330330
this._valueChange.emit(date);
331331
this.dateInput.emit(new MatDatepickerInputEvent(this, this._elementRef.nativeElement));
332+
} else {
333+
this._validatorOnChange();
332334
}
333335
}
334336

0 commit comments

Comments
 (0)