Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
driskull committed Aug 26, 2024
1 parent f6eb0b2 commit 0600f3a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1090,11 +1090,8 @@ export class InputDatePicker
)
: null;

this.setInputValue((date && this.dateTimeFormat?.format(date)) ?? "", "start");
this.setInputValue(
(this.range && endDate && this.dateTimeFormat?.format(endDate)) ?? "",
"end",
);
this.setInputValue((date && this.dateTimeFormat.format(date)) ?? "", "start");
this.setInputValue((this.range && endDate && this.dateTimeFormat.format(endDate)) ?? "", "end");
}

private setInputValue = (newValue: string, input: "start" | "end" = "start"): void => {
Expand Down

0 comments on commit 0600f3a

Please sign in to comment.