Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3445] iOS: Button bar displays "You clicked undefined" intermittently

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2016-11-02T12:37:21.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsbutton, defect, ios, reported-1.7.0, undefined
ReporterNatalie Huynh
AssigneeHans Knöchel
Created2011-04-15T03:45:15.000+0000
Updated2017-03-14T22:03:50.000+0000

Description

Steps to Reproduce:
1. Run Kitchen Sink on Device
2. Run Base UI > Window Constructor
3. Click Open a New Window
4. In the new Window Click "One" and "Two" about 5-10 times dismissing the dialog each time

Actual Result:
Intermittently you will see "You clicked undefined" (see attached image)

Expected Result:
To always return the clicked value

Tested with Titanium SDK version: 1.7.0 (03/23/11 09:50 87caf1e...) on
iPhone 4 4.3

Note:
Also happens on
Controls > Button Bar
Controls > Tabbed bar

Attachments

FileDateSize
screenshot-20110325-105800.png2011-04-15T03:45:16.000+0000174749

Comments

  1. Hans Knöchel 2016-11-02

    Testing using the following code, it works as expected in recent SDK-versions (5.5.x, 6.x):
       var win = Ti.UI.createWindow({
           backgroundColor: "#fff"
       });
       
       var bb1 = Ti.UI.createButtonBar({
           labels: ['One', 'Two', 'Three'],
           backgroundColor: '#336699',
           top: 50,
           style: Ti.UI.iOS.SystemButtonStyle.BAR,
           height: 25,
           width: 200
       });
       
       bb1.addEventListener("click", function(e) {
           alert(e.index);
       });
       
       win.add(bb1);
       win.open();
       
  2. Lee Morris 2017-03-14

    Closed as invalid.

JSON Source