[TIMOB-20550] iOS : Screen Loses Responders after AlertDialog
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-03-11T22:18:01.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 5.4.0 |
| Components | iOS |
| Labels | alertDialog, autolayout, qe-5.4.0, textfield |
| Reporter | Ben Bahrenburg |
| Assignee | Hans Knöchel |
| Created | 2016-03-11T03:30:51.000+0000 |
| Updated | 2016-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.
Example project : https://github.com/benbahrenburg/TIMOB-20550/tree/master/FocusProblem Video Walk Thru : https://github.com/benbahrenburg/TIMOB-20550/blob/master/FocusIssue.mp4
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();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..
PR: https://github.com/appcelerator/titanium_mobile/pull/7838
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.*