Skip to content

Commit

Permalink
Merge pull request #2860 from Akshat55/issue.2857
Browse files Browse the repository at this point in the history
fix: set initial date to input
  • Loading branch information
zvonimirfras authored Apr 25, 2024
2 parents 0f72031 + 25847fb commit 2baf7ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/datepicker/datepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ export class DatePicker implements
}

ngAfterViewInit() {
this.input.input.nativeElement.value = this._value[0] ?? "";
if (this.range) {
this.rangeInput.input.nativeElement.value = this._value[1] ?? "";
}
setTimeout(() => {
this.addInputListeners();
}, 0);
Expand Down

0 comments on commit 2baf7ca

Please sign in to comment.