Skip to content

Commit

Permalink
Merge pull request #1784 from zyfra/fix/date-time-1575
Browse files Browse the repository at this point in the history
fix(components/input-date-time): display time 00:00 when a date is selected #1575
  • Loading branch information
ZurabDev authored Jun 13, 2024
2 parents 15ddf44 + b603e73 commit b6c33a3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ export class PrizmInputLayoutDateTimeComponent
private updateWithCorrectDateAndTime(value: [PrizmDay | null, PrizmTime | null]): void {
if (!value) return;
let [date, time] = value;
if (date && !time) time = new PrizmTime(0, 0, 0);

const dateMin = this.min instanceof PrizmDay ? this.min : this.min && this.min[0];
const dateMax = this.max instanceof PrizmDay ? this.max : this.max && this.max[0];
Expand Down

0 comments on commit b6c33a3

Please sign in to comment.