Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20550] iOS : Screen Loses Responders after AlertDialog

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-03-11T22:18:01.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsiOS
LabelsalertDialog, autolayout, qe-5.4.0, textfield
ReporterBen Bahrenburg
AssigneeHans Knöchel
Created2016-03-11T03:30:51.000+0000
Updated2016-06-10T21:53:59.000+0000

Description

Currently in master starting with build 5.4.0.v20160309142224 I'm running into an issue where all of the controls on a window lose focus after an AlertDialog is raised.

Comments

  1. Ben Bahrenburg 2016-03-11

    Example project : https://github.com/benbahrenburg/TIMOB-20550/tree/master/FocusProblem Video Walk Thru : https://github.com/benbahrenburg/TIMOB-20550/blob/master/FocusIssue.mp4
  2. Hans Knöchel 2016-03-11

    Hey Ben! The only critical master PR the last days was https://github.com/appcelerator/titanium_mobile/pull/7618 but I cannot find any related change in the first place. Do you have a build that works? Will try to reproduce. EDIT: Reproducible test case
       var win = Ti.UI.createWindow({backgroundColor: "#fff"});
       var field = Ti.UI.createTextField({width: 200,height: 30,backgroundColor: "#ccc"});
       
       field.addEventListener("return", function() {
       	var dia = Ti.UI.createAlertDialog({
       		title: "TIMOB-20550",
       		message: "Test!",
       	});
       	dia.show();
       })
       
       win.add(field);
       win.open();
       
  3. Hans Knöchel 2016-03-11

    Ok, tracked it down. The above PR is causing the issue. If we check out c5089c instead (last PR before), it does not break. Will further investigate. EDIT: https://github.com/appcelerator/titanium_mobile/pull/7618/files#diff-c8d0503f78b93678fb1abb477d4b6e3fR299 is the issue :-) Working..
  4. Hans Knöchel 2016-03-11

    PR: https://github.com/appcelerator/titanium_mobile/pull/7838
  5. Josh Longton 2016-06-10

    Verified as fixed. 
Tested on:
 iPhone 6s Plus (9.3.1) iOS Simulator (9.3) 
Mac OSX El Capitan 10.11.4 Studio: 4.7.0.201606070951
 Ti SDK: 5.4.0.v20160608165242
, 5.4.0.v20160309142224 Appc NPM: 4.2.7-2 Appc CLI: 5.4.0-13 
Xcode 7.3 Node v0.12.7
 *Closing Ticket.*

JSON Source