{ "id": "103003", "key": "AC-2547", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-10-11T20:35:20.000+0000", "created": "2012-10-09T22:44:20.000+0000", "labels": [ "blur", "focus", "ios", "textfield" ], "versions": [], "issuelinks": [ { "id": "21930", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "102754", "key": "AC-1852", "fields": { "summary": "Keyboard stays up when you Show/Hide elements in a TableViewRow", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:36.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "As of 2.1.3.GA it's no longer possible to loose focus from TextFields if you're performing some action in the 'blur' event.\r\n\r\nBlur event code will fire, but the TextField will gain focus again, making the keyboard active again and so preventing access to UI elements obscured by the keyboard.\r\n\r\nInterestingly, the 'focus' event does not seem to get fired when the TextField gets the focus again (but not 100% sure!).\r\n\r\nBelow is an example of some code that triggers this. This code simply removes a background color I'm applying to a TableRow highlighting the data item being edited.\r\n\r\n{code}\r\ntxtUsername.addEventListener('blur', function(e) {\r\n\tFM.settings.setUsername(txtUsername.value.trim());\r\n\ttxtOnBlur(e);\r\n});\r\n\r\nfunction txtOnBlur(e) {\r\n\tvar truerow = FM.ui.helper.getTrueRowByType(e.source)\r\n\ttruerow.setBackgroundColor(FM.ui.theme.tableViewRowBackgroundNormal);\r\n};\r\n{code}", "attachment": [], "flagged": false, "summary": "TextField never looses focus when action performed in Blur event (re-focuses afterwards)", "creator": { "name": "gavinharriss", "key": "gavinharriss", "displayName": "Gavin Harriss", "active": true, "timeZone": "Pacific/Auckland" }, "subtasks": [], "reporter": { "name": "gavinharriss", "key": "gavinharriss", "displayName": "Gavin Harriss", "active": true, "timeZone": "Pacific/Auckland" }, "environment": "Titanium SDK: 2.1.3.GA\r\nPlatform: iOS", "comment": { "comments": [ { "id": "223158", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Looks like a duplicate of TC-1343 with a textField in a tableView.\r\nFix was pushed to 2_1_X branch a few days ago. Marking this as resolved. \r\n\r\nIf the problem persists please reopen the issue. Would appreciate a bigger code sample.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T20:35:20.000+0000", "updated": "2012-10-11T20:35:20.000+0000" }, { "id": "280935", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Closing since it's a dup. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:07:53.000+0000", "updated": "2013-11-24T22:07:53.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }