{ "id": "93317", "key": "TIMOB-9567", "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": "2012-06-15T03:59:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "qe-and060112", "reprod" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:56.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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "On rotation of device from Portrait to Landscape or vice-versa, an text field that has focus gets blur. This happens for text field added to a TableViewRow\r\n\r\nThis is not a regression. This behavior occurs on 1.8.2 also\r\n\r\nSteps to Reproduce:\r\n1. Create an application with the code below\r\n2. Launch the application\r\n3. Click on the text field. The field gets focus and softkeyboard is shown\r\n4. Rotate the device\r\n\r\nActual:\r\nThe blur event for the text field is fired\r\n\r\nExpected: The focus on text field should continue\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\t\tsoftInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : '',\r\n\t\twindowSoftInputMode : (Titanium.UI.Android) ? Ti.UI.Android.SOFT_INPUT_ADJUST_PAN : ''\r\n\t\t});\r\n\r\n\t\tvar tf1 = null;\r\n\t\t\tvar row = Ti.UI.createTableViewRow({\r\n\t\t\t\tbackgroundColor: \"#000\",\r\n\t\t\t\theight : 80\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\ttf1 = Titanium.UI.createTextField({\r\n\t\t\t\tbackgroundColor: \"#fff\",\r\n\t\t\t\twidth : 250,\r\n\t\t\t\theight : 80,\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\ttf1.addEventListener('focus', function() {\r\n\t\t\t\talert('Focus fired');\r\n\t\t\t});\r\n\t\t\r\n\t\t\ttf1.addEventListener('blur', function() {\r\n\t\t\t\talert('Blur fired');\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\trow.add(tf1);\r\n\t\t\t\r\n\t\tvar tableView = Ti.UI.createTableView();\r\n\t\ttableView.appendRow(row);\r\n\t\twin.add(tableView);\r\n\t\twin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TextField: Blur event fires for text field added to a tableviewrow on rotation of device", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0.201206131907\r\nTitanium SDK: 2.1.0.v20120614194151\r\nAndroid Device: Android Tab GT-P6200 (V3.2), Galaxy Nexus (V4.0.2)\r\nRuntime: v8", "comment": { "comments": [ { "id": "239792", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue is reproduced with sdk version 3.0.2 and 3.1.0 .", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T12:16:48.000+0000", "updated": "2013-02-26T12:16:48.000+0000" }, { "id": "423528", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-05T17:32:54.000+0000", "updated": "2017-07-05T17:32:54.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }