{ "id": "63741", "key": "TIMOB-3109", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11359", "description": "Mobile 1.8.0 M06", "name": "Sprint 2011-27", "archived": true, "released": true, "releaseDate": "2011-07-11" } ], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2011-07-05T16:05:14.000+0000", "created": "2011-04-15T03:37:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "blur", "defect", "ios", "keyboard", "modalstyle", "reported-1.5.1", "reported-1.6.0" ], "versions": [], "issuelinks": [ { "id": "30276", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "87341", "key": "TIMOB-8611", "fields": { "summary": "iOS: TextArea.blur() does not hide keyboard on iPad in modal formsheet", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "30275", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "117318", "key": "TIMOB-14591", "fields": { "summary": "iOS: iPad: textArea.blur() not working within modal view when modalStyle: Ti.UI.iPhone.MODAL_PRESENTATION_FORMSHEET", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "30274", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "82463", "key": "TIMOB-6060", "fields": { "summary": "iOS: Blurring Textfield in Modal Window Doesn't Dismiss Keyboard", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:16:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
I've found out that when a textField is on a modal window, with\r\na modalStyle set to the constant of\r\nTitanium.UI.iPhone.MODAL_PRESENTATION_FORMSHEET\r\nthe keyboard is not able to loose focus properly.
\r\nWhat happens when blur() is called is cursor focus is lost from\r\nthe textField yet the keyboard remains on the screen and is\r\nunresponsive to touch events. I have written a small app.js so that\r\nthis bug can be reproduced.
\r\nRunning Titanium Developer v1.2.2 on OSX 10.6.6 and Titanium SDK\r\nv1.5.1 on an iPad Project (simulator and device). I'm 99.9% sure\r\nit's this line
\r\n\"modalStyle:\r\nTitanium.UI.iPhone.MODAL_PRESENTATION_FORMSHEET\" as removing\r\nit fixes the problem.
\r\nvar window = Titanium.UI.createWindow({\r\n backgroundColor: '#eee'\r\n});\r\n\r\nvar textField = Titanium.UI.createTextField({\r\n height:35,\r\n top:300,\r\n width:350,\r\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n\r\ntextField.addEventListener('return', function(e) {\r\n textField.blur();\r\n});\r\n\r\nwindow.add(textField);\r\nwindow.open({\r\n modal:true,\r\n modalTransitionStyle: Titanium.UI.iPhone.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL,\r\n modalStyle: Titanium.UI.iPhone.MODAL_PRESENTATION_FORMSHEET\r\n});
\r\n
I'm also seeing this on the iPad using the current 1.7.0 SDK in\ngithub with textFields on a MODAL_PRESENTATION_FORMSHEET modal\nwindow.
\ntextfield.blur() removes the caret, but the keyboard is still\nup.