[ALOY-1125] Alloy: Button - Click event doesn't trigger
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Resolved |
Resolution | Hold |
Resolution Date | 2014-09-26T14:53:16.000+0000 |
Affected Version/s | Alloy 1.5.0, Alloy 1.4.1 |
Fix Version/s | n/a |
Components | Runtime |
Labels | button, click, tableview, tableviewsection |
Reporter | Shuo Liang |
Assignee | Tim Poulsen |
Created | 2014-09-02T17:30:42.000+0000 |
Updated | 2014-09-26T14:53:16.000+0000 |
Description
Click event doesn't trigger correctly. After few (~3) clicks the event is not triggered at all. Button basically behave as it was without any event listener. Please look at it ASAP. index.js (only)
var win = Ti.UI.createWindow();
var table = Ti.UI.createTableView();
var row = Ti.UI.createTableViewRow({
selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE
});
var button = Ti.UI.createButton({
title: "Press!",
width: 50, height: 50,
backgroundColor: "red",
right: 25
});
var section = Ti.UI.createTableViewSection({
rows: [row]
});
button.addEventListener("click", function(e) {
console.log(e);
});
row.add(button);
table.setData([section]);
win.add(table);
win.open();
Attachments
File | Date | Size |
---|---|---|
app.js.zip | 2014-09-17T17:44:30.000+0000 | 431 |
app.zip | 2014-09-17T18:12:55.000+0000 | 6055915 |