[TIMOB-11350] Blackberry: AlertDialog click events not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-15T19:19:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-21 BB, 2013 Sprint 08 BB, 2013 Sprint 08, Release 3.2.0 |
Components | BlackBerry |
Labels | n/a |
Reporter | Josh Roesslein |
Assignee | Josh Roesslein |
Created | 2012-10-10T03:45:01.000+0000 |
Updated | 2013-04-15T20:20:26.000+0000 |
Description
The "click" events are not firing when a button is pressed on an alert dialog.
Test Case
Ti.API.info('running');
var win = Ti.UI.createWindow({backgroundColor: 'red'});
win.open();
function showAlert() {
Ti.API.info('opening alert...');
var alert = Ti.UI.createAlertDialog({
title: 'Click a button...'
});
alert.addEventListener('click', function(e) {
Ti.API.info('index = ' + e.index);
});
alert.show();
}
setTimeout(showAlert, 2000);
Reopening as still seeing the issue. Not seeing alert dialog click events. Environment: Ti Studio : 3.1.0.201212191959 Ti BB SDK : 3.1.0.v20130114171802 Mac OSX : 10.8.2 win 7 64 bit BB simulator : 10.0.9.386
Tested on BlackBerry simulator 10.1.0.1020. Not able to reproduce the bug. I can see the log message when clicking the button.