Skip to content

Commit dcaceb4

Browse files
committed
Date picker: fix calendar initialization
1 parent b56c448 commit dcaceb4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.68.2 (2025-02-10)
2+
3+
### Bug fix
4+
5+
- **Date picker**: Show selected date when opening the calendar
6+
17
# 2.68.1 (2025-02-04)
28

39
### Improvements

projects/pastanaga-angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@guillotinaweb/pastanaga-angular",
33
"description": "Provides Pastanaga UI elements as Angular components",
4-
"version": "2.68.1",
4+
"version": "2.68.2",
55
"license": "MIT",
66
"keywords": [
77
"angular",

projects/pastanaga-angular/src/lib/date-picker/date-picker.component.ts

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export class DatePickerComponent extends PaFormControlDirective {
138138

139139
this.inputControl.setValue(date);
140140
this._selectedDate = this.getUtcDate(startOfDay(new Date(value)));
141+
this.trackedDate = this._selectedDate || new Date();
141142
});
142143

143144
// honor text entry

0 commit comments

Comments
 (0)