[TIMOB-3445] iOS: Button bar displays "You clicked undefined" intermittently
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2016-11-02T12:37:21.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | button, defect, ios, reported-1.7.0, undefined |
| Reporter | Natalie Huynh |
| Assignee | Hans Knöchel |
| Created | 2011-04-15T03:45:15.000+0000 |
| Updated | 2017-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
| File | Date | Size |
|---|---|---|
| screenshot-20110325-105800.png | 2011-04-15T03:45:16.000+0000 | 174749 |
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();Closed as invalid.