Skip to content

Commit

Permalink
fix(material/timepicker): value considered as invalid by default
Browse files Browse the repository at this point in the history
Fixes that the `_lastValueValid` was defaulting to false which meant that it would be considered as invalid on load.

(cherry picked from commit cccc3df)
  • Loading branch information
crisbeto committed Nov 4, 2024
1 parent a5d9004 commit 9b5ee9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/timepicker/timepicker-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class MatTimepickerInput<D> implements ControlValueAccessor, Validator, O
private _localeSubscription: Subscription;
private _timepickerSubscription: OutputRefSubscription | undefined;
private _validator: ValidatorFn;
private _lastValueValid = false;
private _lastValueValid = true;
private _lastValidDate: D | null = null;

/** Value of the `aria-activedescendant` attribute. */
Expand Down

0 comments on commit 9b5ee9d

Please sign in to comment.