[TIMOB-28460] Android: Picker "change" event's "selectedValue" property does not provide row titles as of 10.0.1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-05-26T15:33:26.000+0000 |
Affected Version/s | Release 10.0.1 |
Fix Version/s | Release 10.0.1 |
Components | Android |
Labels | android, picker, regression |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2021-05-22T00:05:00.000+0000 |
Updated | 2021-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
File | Date | Size |
---|---|---|
SpinnerSimpleTest.js | 2021-05-22T00:00:52.000+0000 | 994 |
PR (master): https://github.com/appcelerator/titanium_mobile/pull/12833
merged to master and 10_0_X for 10.0.1 target