[ALOY-1310] Alloy: Picker not working in ListView template
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-10-09T04:46:11.000+0000 |
Affected Version/s | alloy 1.7.15 |
Fix Version/s | alloy 1.7.16, Release 5.0.3 |
Components | n/a |
Labels | alloy, itemtemplate, listview, picker |
Reporter | Hans Knöchel |
Assignee | Feon Sua Xin Miao |
Created | 2015-03-01T12:31:36.000+0000 |
Updated | 2015-10-12T21:23:03.000+0000 |
Description
I use a Picker inside a itemTemplate in a ListView. When not using any eventListener, the picker works (but is useless). Once i assign an event like onChange="doSomething", the app crashed when being opened and says:
"undefined is not an object (evaluating '$.__views.picker.addEventListener')";
Expected behaviour: The picker inside a ListView can have events.
Given behaviour: The picker inside a ListView cannot have events and the app crashes immediately.
Example code will be available soon!
We have a ciritical client request on this thing, is there any workaround to handle this? Maybe a special wrapping-view?
PR: https://github.com/appcelerator/alloy/pull/728
PR merged.
Verified the fix. Used the code above to test. The app does not crash anymore. Closing. Environment: Appc Studio : 4.3.1.201509302304 Ti SDK : 5.0.2 Ti CLI : 5.0.5 Alloy : 1.7.16 MAC Yosemite : 10.10.4 Appc NPM : 4.2.0 Appc CLI : 5.0.3-14 Node: v0.10.37 Iphone 5S Simulator : IOS 8.1