[TIMOB-10054] iOS: View: Click event of view not fired when view clicked immediately after dismissing an alert
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-27T08:53:08.000+0000 |
Affected Version/s | Release 2.1.1 |
Fix Version/s | Release 3.0.2 |
Components | iOS |
Labels | api, parity, qe-ios070112 |
Reporter | Satyam Sekhri |
Assignee | Shameer Jan |
Created | 2012-07-20T02:41:19.000+0000 |
Updated | 2017-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();
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
Closing ticket as the issue cannot be reproduced and due to the above comments.