{ "id": "131822", "key": "TIMOB-17229", "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": [], "resolution": null, "resolutiondate": null, "created": "2014-06-17T15:20:50.000+0000", "priority": null, "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:31.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Create a textarea from a dataCollection, as demonstrated. When the textarea is focused, the focused and blurred events are both called. The textarea isn't actually blurred, although this bug can lead to needing to use hacks to fix it.", "attachment": [ { "id": "49005", "filename": "test.tar.gz", "author": { "name": "jacobp100", "key": "jacobp100", "displayName": "Jacob Parker", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-17T15:20:50.000+0000", "size": 1315601, "mimeType": "application/x-gzip" } ], "flagged": false, "summary": "Android TextArea in DataBinding Calls Blur after Focus when Focusing", "creator": { "name": "jacobp100", "key": "jacobp100", "displayName": "Jacob Parker", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jacobp100", "key": "jacobp100", "displayName": "Jacob Parker", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 4.4 (KitKat)", "comment": { "comments": [ { "id": "311244", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nThank you for your ticket. I will be forward ticket to our engineer team.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-27T08:42:13.000+0000", "updated": "2014-06-27T08:42:13.000+0000" }, { "id": "311249", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Test with different situation. Not just using Databinding will happen this problem. Using textarea by normal way also get this problem on Android.\r\nAdditional, the problem does not only happen in Alloy project, but also happen in regular app project. Here is a simple test case:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:\"white\"\r\n});\r\n\r\nvar tv = Ti.UI.createTableView({});\r\nvar tableData = [];\r\n\r\nvar row1 = Ti.UI.createTableViewRow({});\r\nvar area1 = Ti.UI.createTextArea({\r\n\tvalue: \"test 1\"\r\n});\r\nrow1.add(area1);\r\ntableData.push(row1);\r\n\r\narea1.addEventListener(\"focus\", function() {\r\n\tconsole.log('focused test 1');\r\n});\r\narea1.addEventListener(\"blur\", function() {\r\n\tconsole.log('blurred from test 1');\r\n});\r\n\r\n\r\nvar row2 = Ti.UI.createTableViewRow({});\r\nvar area2 = Ti.UI.createTextArea({\r\n\tvalue: \"test 2\"\r\n});\r\nrow2.add(area2);\r\ntableData.push(row2);\r\n\r\narea2.addEventListener(\"focus\", function() {\r\n\tconsole.log('focused test 2');\r\n});\r\narea2.addEventListener(\"blur\", function() {\r\n\tconsole.log('blurred from test 2');\r\n});\r\n\r\n\r\ntv.setData(tableData);\r\nwin.add(tv);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-27T09:49:41.000+0000", "updated": "2014-06-27T09:49:41.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }