mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +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];
|
||||
} else {
|
||||
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.activeParts,
|
||||
|
Reference in New Issue
Block a user