[TIMOB-3540] PickerRow events not registering
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-07-10T19:03:34.000+0000 |
Affected Version/s | Release 2.0.1, Release 3.1.0, Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | supportTeam |
Reporter | Alan Leard |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:46:27.000+0000 |
Updated | 2017-07-10T19:03:34.000+0000 |
Description
Problem
PickerRow events are not registering as documented.
Test Code
var win = Titanium.UI.createWindow();
var picker = Titanium.UI.createPicker();
row1=Titanium.UI.createPickerRow({title:'Row 1'});
row2=Titanium.UI.createPickerRow({title:'Row 2'});
row3=Titanium.UI.createPickerRow({title:'Row 3',stellarLevel:3});
picker.add(row1);
picker.add(row2);
picker.add(row3);
win.add(picker);
row1.addEventListener('click',function(){
Ti.API.info('CLICK');
});
row2.addEventListener('touchstart',function(){
Ti.API.info('TOUCH');
});
row3.addEventListener('touchend',function(){
Ti.API.info('TOUCH');
});
picker.addEventListener('change', function(e){
Ti.API.info(picker.getSelectedRow(0).title);
});
win.open();
Ticket Reference
http://support-admin.appcelerator.com/display/PCR-28533-758">http://support-admin.appcelerator.com/display/PCR-28533-758
This will occur as part of an update to Tableviews in 1.8.
Documentation says this should work, tested with 2.0.1GA2, issue still exists on the iOS simulator.
Issue reproduces on ios simulator Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 iOS iPhone Simulator: iOS SDK version: 6.0
Can verify that this has been fixed and tested with the following environment; iPhone 6 (10.0) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131