Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11350] Blackberry: AlertDialog click events not working

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-15T19:19:45.000+0000
Affected Version/sn/a
Fix Version/sSprint 2012-21 BB, 2013 Sprint 08 BB, 2013 Sprint 08, Release 3.2.0
ComponentsBlackBerry
Labelsn/a
ReporterJosh Roesslein
AssigneeJosh Roesslein
Created2012-10-10T03:45:01.000+0000
Updated2013-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);

Comments

  1. Lokesh Choudhary 2013-01-22

    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
  2. Josh Roesslein 2013-04-15

    Tested on BlackBerry simulator 10.1.0.1020. Not able to reproduce the bug. I can see the log message when clicking the button.
  3. Lokesh Choudhary 2013-04-15

JSON Source