mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
fix(datetime): add correct null check when value changes (#25716)
resolves #25714
This commit is contained in:
@ -353,7 +353,7 @@ export class Datetime implements ComponentInterface {
|
|||||||
this.activePartsClone = [...valueDateParts];
|
this.activePartsClone = [...valueDateParts];
|
||||||
} else {
|
} else {
|
||||||
const { month, day, year, hour, minute } = valueDateParts;
|
const { month, day, year, hour, minute } = valueDateParts;
|
||||||
const ampm = hour ? (hour >= 12 ? 'pm' : 'am') : undefined;
|
const ampm = hour != null ? (hour >= 12 ? 'pm' : 'am') : undefined;
|
||||||
|
|
||||||
this.activePartsClone = {
|
this.activePartsClone = {
|
||||||
...this.activeParts,
|
...this.activeParts,
|
||||||
|
Reference in New Issue
Block a user