Skip to content

Commit 9b5ee9d

Browse files
committed
fix(material/timepicker): value considered as invalid by default
Fixes that the `_lastValueValid` was defaulting to false which meant that it would be considered as invalid on load. (cherry picked from commit cccc3df)
1 parent a5d9004 commit 9b5ee9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/timepicker/timepicker-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
9393
private _localeSubscription: Subscription;
9494
private _timepickerSubscription: OutputRefSubscription | undefined;
9595
private _validator: ValidatorFn;
96-
private _lastValueValid = false;
96+
private _lastValueValid = true;
9797
private _lastValidDate: D | null = null;
9898

9999
/** Value of the `aria-activedescendant` attribute. */

0 commit comments

Comments
 (0)