Issue Description
When using the 3.5.0.GA TiSDK and iOS 8 if you open an option dialog and then click outside of the dialog it does not fire the dialogs clicked event. When using the 3.4.1.GA TiSDK and iOS 8 it does fire this event.
Test Case
(function() {
var myWindow = Ti.UI.createWindow({
height : Ti.UI.FILL,
width : Ti.UI.FILL,
backgroundColor : 'blue'
});
myWindow.open();
var dialog = Ti.UI.createOptionDialog({
cancel : -1,
options : ["YES", "NO"],
selectedIndex : 1,
destructive : 1,
title : "Option Dialog"
});
dialog.addEventListener('click', function(e) {
Ti.API.error("dialog clicked!!");
if (e.index === 0) {
Ti.API.error("Index 0");
}
});
dialog.show();
})();
Steps to replicate
Build with 3.4.1.GA TiSDK, launch on iPad.
Click anywhere outside of the dialog, notice that the click event is fired.
Then
Build with 3.5.0.GA TiSDK, launch on iPad.
Click anywhere outside of the dialog, notice that the click event is NOT fired. EXPECTED: The click event fires when the user clicks outside of the dialog.
Additional Details
On iOS 7 with the 3.5.0.GA TiSDK the dialogs click event is fired. This issue is only present on iOS 8.x.
Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6573
PR Looks good, verified on iPad running iOS 8.1.1 and iPad running iOS 7.0.4.
Backport to 3_5_X https://github.com/appcelerator/titanium_mobile/pull/6576
Verified fix on: Mac OSX 10.10.1 Appcelerator Studio, build: 3.4.1.201410281743 Titanium SDK build: 3.6.0.v20150116070927, 3.5.1.v20150115094121 Titanium CLI, build: 3.4.1 Alloy: 1.5.1 Xcode 6.1.1 iPad Air 2 (8.2b4), iPad Air (7.0.3) Using the attached code built to both devices, dialog cancel event is fired when clicking outside of the option dialog. Closing ticket.