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

This commit is contained in:
ShaneK
2025-03-25 14:21:13 -07:00
parent 48f25e6eb8
commit 4b430a3d6e

View File

@@ -1984,7 +1984,7 @@ export class Datetime implements ComponentInterface {
});
this.setActiveParts({
...activePart,
...this.getActivePartsWithFallback(),
hour: ev.detail.value,
});
@@ -2024,7 +2024,7 @@ export class Datetime implements ComponentInterface {
});
this.setActiveParts({
...activePart,
...this.getActivePartsWithFallback(),
minute: ev.detail.value,
});
@@ -2070,7 +2070,7 @@ export class Datetime implements ComponentInterface {
});
this.setActiveParts({
...activePart,
...this.getActivePartsWithFallback(),
ampm: ev.detail.value,
hour,
});