[TIMOB-26256] iOS: Removing and re-adding a date/time picker resets selection to current time
| GitHub Issue | n/a |
| Type | Bug |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | engSchedule, ios, picker |
| Reporter | Joshua Quick |
| Assignee | Unknown |
| Created | 2018-08-03T21:22:26.000+0000 |
| Updated | 2019-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
No comments