Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28460] Android: Picker "change" event's "selectedValue" property does not provide row titles as of 10.0.1

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2021-05-26T15:33:26.000+0000
Affected Version/sRelease 10.0.1
Fix Version/sRelease 10.0.1
ComponentsAndroid
Labelsandroid, picker, regression
ReporterJoshua Quick
AssigneeJoshua Quick
Created2021-05-22T00:05:00.000+0000
Updated2021-05-26T15:33:26.000+0000

Description

*Summary:* A plain Ti.UI.Picker view's "change" event is supposed to return an array of row selected row titles from the event's "selectedValue" property. As of Titanium 10.0.1, it returns an array of literal \[object Object\] strings. *Note:* This issue was caught before release. *Steps to reproduce:*

Build and run [^SpinnerSimpleTest.js] on Android.

Scroll each column in the spinner.

Look at log.

*Result:* Notice it wrongly logs {\{[object Object\]}} for each column.
@@@ Selected values: [object Object],[object Object],[object Object]
*Expected Result:* Must log the row "title" from each column in the picker.

Attachments

FileDateSize
SpinnerSimpleTest.js2021-05-22T00:00:52.000+0000994

Comments

  1. Joshua Quick 2021-05-22

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/12833
  2. Christopher Williams 2021-05-26

    merged to master and 10_0_X for 10.0.1 target

JSON Source