Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10054] iOS: View: Click event of view not fired when view clicked immediately after dismissing an alert

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-27T08:53:08.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sRelease 3.0.2
ComponentsiOS
Labelsapi, parity, qe-ios070112
ReporterSatyam Sekhri
AssigneeShameer Jan
Created2012-07-20T02:41:19.000+0000
Updated2017-03-21T22:16:17.000+0000

Description

Click event of view not fired when view clicked immediately after dismissing an alert. This is not a regression. The issue occurs as far as 1.8.2 Steps to Reproduce: 1. Create an application with code below and launch the app 2. Click on the label 'Click Me'. An alert is shown 3. Dismiss the alert and immediately click on the red view. (the issue does not occur if view is not clicked instantly) Actual: The click event does not fire for the view Expected: An alert should appear and info logged in console on click of view
var win = Ti.UI.createWindow({
	backgroundColor: 'white'
});

var view = Titanium.UI.createView({
	backgroundColor : 'red',
	height : 50,
	top: 100
});
var label=Ti.UI.createLabel({
	text:"Click Me",
	top:0
})
view.addEventListener('click', function(e){
	alert('clicked');
	Ti.API.info('clicked');
});
label.addEventListener('click', function(e){
	alert('clicked label');
	//Ti.API.info('clicked label');
});
win.add(label);
win.add(view);
win.open();

Comments

  1. Shameer Jan 2013-03-27

    Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0 , 5.1
  2. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source