diff --git a/core/src/components/datetime/datetime.tsx b/core/src/components/datetime/datetime.tsx index 579bfa980d..fea00902e8 100644 --- a/core/src/components/datetime/datetime.tsx +++ b/core/src/components/datetime/datetime.tsx @@ -1662,14 +1662,6 @@ export class Datetime implements ComponentInterface { disabled={disabled} value={todayString} onIonChange={(ev: CustomEvent) => { - // TODO(FW-1823) Remove this when iOS 14 support is dropped. - // Due to a Safari 14 issue we need to destroy - // the scroll listener before we update state - // and trigger a re-render. - if (this.destroyCalendarListener) { - this.destroyCalendarListener(); - } - const { value } = ev.detail; const findPart = parts.find(({ month, day, year }) => value === `${year}-${month}-${day}`); @@ -1683,10 +1675,6 @@ export class Datetime implements ComponentInterface { ...findPart, }); - // We can re-attach the scroll listener after - // the working parts have been updated. - this.initializeCalendarListener(); - ev.stopPropagation(); }} > @@ -1793,14 +1781,6 @@ export class Datetime implements ComponentInterface { disabled={disabled} value={pickerColumnValue} onIonChange={(ev: CustomEvent) => { - // TODO(FW-1823) Remove this when iOS 14 support is dropped. - // Due to a Safari 14 issue we need to destroy - // the scroll listener before we update state - // and trigger a re-render. - if (this.destroyCalendarListener) { - this.destroyCalendarListener(); - } - this.setWorkingParts({ ...workingParts, day: ev.detail.value, @@ -1811,10 +1791,6 @@ export class Datetime implements ComponentInterface { day: ev.detail.value, }); - // We can re-attach the scroll listener after - // the working parts have been updated. - this.initializeCalendarListener(); - ev.stopPropagation(); }} > @@ -1848,14 +1824,6 @@ export class Datetime implements ComponentInterface { disabled={disabled} value={workingParts.month} onIonChange={(ev: CustomEvent) => { - // TODO(FW-1823) Remove this when iOS 14 support is dropped. - // Due to a Safari 14 issue we need to destroy - // the scroll listener before we update state - // and trigger a re-render. - if (this.destroyCalendarListener) { - this.destroyCalendarListener(); - } - this.setWorkingParts({ ...workingParts, month: ev.detail.value, @@ -1866,10 +1834,6 @@ export class Datetime implements ComponentInterface { month: ev.detail.value, }); - // We can re-attach the scroll listener after - // the working parts have been updated. - this.initializeCalendarListener(); - ev.stopPropagation(); }} > @@ -1902,14 +1866,6 @@ export class Datetime implements ComponentInterface { disabled={disabled} value={workingParts.year} onIonChange={(ev: CustomEvent) => { - // TODO(FW-1823) Remove this when iOS 14 support is dropped. - // Due to a Safari 14 issue we need to destroy - // the scroll listener before we update state - // and trigger a re-render. - if (this.destroyCalendarListener) { - this.destroyCalendarListener(); - } - this.setWorkingParts({ ...workingParts, year: ev.detail.value, @@ -1920,10 +1876,6 @@ export class Datetime implements ComponentInterface { year: ev.detail.value, }); - // We can re-attach the scroll listener after - // the working parts have been updated. - this.initializeCalendarListener(); - ev.stopPropagation(); }} >