{ "id": "155198", "key": "TIMOB-20511", "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": "17684", "name": "Release 5.2.1", "archived": false, "released": true, "releaseDate": "2016-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-07T19:50:48.000+0000", "created": "2016-02-29T00:52:08.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.2.1", "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-03-08T18:54:47.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Noticed something odd with my table rows not clickable after building in 5.2.0 SDK on one of my apps.\r\n\r\nIt seems like e.index is returning null on the event listener callback for \"touchend\".\r\n\r\nSteps to Reproduce: \r\n* Create new Mobile App\r\n* Apply the index.js\r\n* Compile in 5.1.2 SDK and run\r\n* Console.log should return the index.\r\n* Recompile in 5.2.0 SDK and run\r\n* Console.log returns \r\n\r\nTouch events such as \"singletap\" do return the index. I did not see this documented anywhere on 5.2.0 so I am creating this issue as a bug.", "attachment": [ { "id": "58358", "filename": "index.js", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2016-02-29T00:52:38.000+0000", "size": 271, "mimeType": "text/javascript" }, { "id": "58357", "filename": "index.xml", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2016-02-29T00:52:55.000+0000", "size": 151, "mimeType": "text/xml" } ], "flagged": false, "summary": "iOS: TableView touchend and touchstart event property index is null after upgrading to 5.2.0 SDK", "creator": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "environment": "iOS Simulator\r\nAndroid Nexus 6P", "closedSprints": [ { "id": 585, "state": "closed", "name": "2016 Sprint 5 SDK", "startDate": "2016-02-27T01:30:43.377Z", "endDate": "2016-03-12T01:30:00.000Z", "completeDate": "2016-03-14T11:50:17.995Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "378089", "author": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "body": "replace the index files to a new mobile app project", "updateAuthor": { "name": "echeung@leviton.com", "key": "echeung@leviton.com", "displayName": "Eric Cheung", "active": true, "timeZone": "America/Havana" }, "created": "2016-02-29T00:53:18.000+0000", "updated": "2016-02-29T00:53:18.000+0000" }, { "id": "378740", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tested this on 5.2.0.GA. TableView is created on Android and can be seen if you change the index.tss color of container to \r\n{code} \r\n\".container\": {\r\n\tbackgroundColor:\"black\"\r\n}\r\n{code}\r\nWhen you click the correct row, it shows the corresponding number.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-04T04:26:18.000+0000", "updated": "2016-03-04T04:26:18.000+0000" }, { "id": "378742", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR for 5_2_X: https://github.com/appcelerator/titanium_mobile/pull/7802\r\nPR for master: https://github.com/appcelerator/titanium_mobile/pull/7804\r\n\r\nCan verify with the following app.js\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ];\r\n\r\nvar table = Ti.UI.createTableView({\r\n data: tableData\r\n});\r\n\r\n\r\ntable.addEventListener('touchstart', function(e) {\r\n\tconsole.log(\"touchstart:\"+JSON.stringify(e));\r\n\tconsole.log(\"index:\"+e.index);\r\n}); \r\n\r\ntable.addEventListener('touchend', function(e) {\r\n\tconsole.log(\"touchend:\"+JSON.stringify(e));\r\n\tconsole.log(\"index:\"+e.index);\r\n}); \r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-04T05:49:34.000+0000", "updated": "2016-03-04T06:41:25.000+0000" }, { "id": "378744", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR and FT passed. PRs merged!", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-04T07:00:32.000+0000", "updated": "2016-03-04T07:00:32.000+0000" }, { "id": "379048", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, using SDK {{5.2.1.v20160303223838}} console.log returns index value instead of . \r\n\r\nTested on:\r\n\r\niPhone 6S (9.2) , iPhone 6 (8.4) , Android Nexus 6P (6.0)\r\nMac OSX El Capitan 10.11.3 (15D21)\r\nTi SDK: 5.2.1.v20160303223838\r\nAppc Studio: 4.5.0.201602170821\r\nAppc NPM: 4.2.3\r\nApp CLI: 5.2.0\r\nXcode 7.2\r\nNode v4.2.6\r\nproduction\r\n\r\n\r\n\r\n*Closing ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-03-07T19:49:27.000+0000", "updated": "2016-03-07T19:50:33.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }