Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18379] iOS8: Option Dialog iPad no longer fires click when clicked outside

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-01-15T16:31:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.5.1, Release 4.0.0
ComponentsiOS
Labelsqe-verified
ReporterEduardo Gomez
AssigneeVishal Duggal
Created2015-01-15T00:50:57.000+0000
Updated2015-02-19T21:38:26.000+0000

Description

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.

Comments

  1. Vishal Duggal 2015-01-15

    Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6573
  2. Travis Crist 2015-01-15

    PR Looks good, verified on iPad running iOS 8.1.1 and iPad running iOS 7.0.4.
  3. Vishal Duggal 2015-01-15

    Backport to 3_5_X https://github.com/appcelerator/titanium_mobile/pull/6576
  4. Ewan Harris 2015-01-16

    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.

JSON Source