Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3540] PickerRow events not registering

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2017-07-10T19:03:34.000+0000
Affected Version/sRelease 2.0.1, Release 3.1.0, Release 3.2.0
Fix Version/sn/a
ComponentsiOS
LabelssupportTeam
ReporterAlan Leard
AssigneeIngo Muschenetz
Created2011-04-15T03:46:27.000+0000
Updated2017-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

Comments

  1. Reggie Seagraves 2011-04-15

    This will occur as part of an update to Tableviews in 1.8.

  2. Junaid Younus 2012-05-15

    Documentation says this should work, tested with 2.0.1GA2, issue still exists on the iOS simulator.
  3. Shameer Jan 2013-05-08

    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
  4. Lee Morris 2017-07-10

    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

JSON Source