mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user