Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26257] Android: Removing and re-adding spinner resets last selection

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, engSchedule, picker, spinner
ReporterJoshua Quick
AssigneeUnknown
Created2018-08-03T21:32:20.000+0000
Updated2019-04-09T15:43:13.000+0000

Description

*Summary:* An Android Ti.UI.Picker whose property "useSpinner" is set to true will reset its last selection back to the 1st row for all columns when it's removed and re-added to the window. *Steps to reproduce:*

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

Build and run on Android.

Select the last row in all columns in the spinner.

Tap the "Remove" button.

Tap the "Add" button.

Observe the spinner's current selections.

*Result:* Spinner resets its selection to the 1st row in all columns when re-added to the window. *Expected Result:* Last selections in each column should be retained.

Attachments

FileDateSize
MultiPickerAddRemoveTest.js2018-08-03T21:26:22.000+0000960

Comments

No comments

JSON Source