Skip to content

Commit

Permalink
Merge pull request #15164 from rordenerena/fix-calendar-range-showed-…
Browse files Browse the repository at this point in the history
…date

Update calendar.ts
  • Loading branch information
cetincakiroglu authored Mar 26, 2024
2 parents ec9f560 + 7efe9d9 commit 54b7dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2803,7 +2803,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
updateUI() {
let propValue = this.value;
if (Array.isArray(propValue)) {
propValue = propValue[0];
propValue = propValue.length === 2 ? propValue[1] : propValue[0];
}

let val = this.defaultDate && this.isValidDate(this.defaultDate) && !this.value ? this.defaultDate : propValue && this.isValidDate(propValue) ? propValue : new Date();
Expand Down

0 comments on commit 54b7dcf

Please sign in to comment.