Skip to content

Commit 4b430a3

Browse files
committed
fix(datepicker): fixing issue where updating the time display would use the stale time, preventing hours from updating correctly after the first time they got updated
1 parent 48f25e6 commit 4b430a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/components/datetime/datetime.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,7 @@ export class Datetime implements ComponentInterface {
19841984
});
19851985

19861986
this.setActiveParts({
1987-
...activePart,
1987+
...this.getActivePartsWithFallback(),
19881988
hour: ev.detail.value,
19891989
});
19901990

@@ -2024,7 +2024,7 @@ export class Datetime implements ComponentInterface {
20242024
});
20252025

20262026
this.setActiveParts({
2027-
...activePart,
2027+
...this.getActivePartsWithFallback(),
20282028
minute: ev.detail.value,
20292029
});
20302030

@@ -2070,7 +2070,7 @@ export class Datetime implements ComponentInterface {
20702070
});
20712071

20722072
this.setActiveParts({
2073-
...activePart,
2073+
...this.getActivePartsWithFallback(),
20742074
ampm: ev.detail.value,
20752075
hour,
20762076
});

0 commit comments

Comments
 (0)