diff --git a/core/src/components/datetime/datetime.tsx b/core/src/components/datetime/datetime.tsx index bc74098be3..6e49fc756e 100644 --- a/core/src/components/datetime/datetime.tsx +++ b/core/src/components/datetime/datetime.tsx @@ -1648,7 +1648,7 @@ export class Datetime implements ComponentInterface { }} > {items.map((item: PickerColumnItem) => ( - + {item.text} ))} @@ -1736,13 +1736,14 @@ export class Datetime implements ComponentInterface { const { disabled, workingParts } = this; const activePart = this.getActivePartsWithFallback(); + const pickerColumnValue = (workingParts.day !== null ? workingParts.day : this.defaultParts.day) ?? undefined; return ( { // TODO(FW-1823) Remove this when iOS 14 support is dropped. // Due to a Safari 14 issue we need to destroy @@ -1770,7 +1771,7 @@ export class Datetime implements ComponentInterface { }} > {days.map((day: PickerColumnItem) => ( - + {day.text} ))} @@ -1820,7 +1821,7 @@ export class Datetime implements ComponentInterface { }} > {months.map((month: PickerColumnItem) => ( - + {month.text} ))} @@ -1869,7 +1870,7 @@ export class Datetime implements ComponentInterface { }} > {years.map((year: PickerColumnItem) => ( - + {year.text} ))} @@ -1937,7 +1938,7 @@ export class Datetime implements ComponentInterface { }} > {hoursData.map((hour: PickerColumnItem) => ( - + {hour.text} ))} @@ -1971,7 +1972,7 @@ export class Datetime implements ComponentInterface { }} > {minutesData.map((minute: PickerColumnItem) => ( - + {minute.text} ))} @@ -2012,7 +2013,7 @@ export class Datetime implements ComponentInterface { }} > {dayPeriodData.map((dayPeriod: PickerColumnItem) => ( - + {dayPeriod.text} ))} @@ -2564,3 +2565,5 @@ export class Datetime implements ComponentInterface { } let datetimeIds = 0; +const WHEEL_ITEM_PART = 'wheel-item'; +const WHEEL_ITEM_ACTIVE_PART = `${WHEEL_ITEM_PART} active`;