Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26256] iOS: Removing and re-adding a date/time picker resets selection to current time

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelsengSchedule, ios, picker
ReporterJoshua Quick
AssigneeUnknown
Created2018-08-03T21:22:26.000+0000
Updated2019-04-09T15:42:06.000+0000

Description

*Summary:* Picker resets its date/time selection back to current time when it's removed and re-added to the window. This happens with Ti.UI.PICKER_TYPE_DATE and Ti.UI.PICKER_TYPE_TIME. This is not an issue on Android. *Steps to reproduce:*

Create a project using the attached [^DatePickerAddRemoveTest.js] code.

Build and run on iOS.

Select a different date/time in the picker.

Tap the "Remove" button.

Tap the "Add" button.

Observe the picker's current date/time.

*Result:* Picker resets its selection to current time. Previous selection was forgotten. *Expected Result:* Last date/time selection should be retained.

Attachments

FileDateSize
DatePickerAddRemoveTest.js2018-08-03T21:19:40.000+0000571

Comments

No comments

JSON Source