{ "id": "176117", "key": "TIMOB-28387", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" }, { "id": "21212", "description": "", "name": "Release 9.3.3", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-05-18T18:11:13.000+0000", "created": "2021-03-12T15:40:47.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "TableView", "android", "regression" ], "versions": [ { "id": "21191", "name": "Release 9.3.2", "archived": false, "released": true, "releaseDate": "2021-02-11" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-05-18T18:11:16.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" } ], "description": "h5.Description\r\n\r\nThe index property in a click event of a TableView is no longer unique within the tableview, it's not per TableViewSection\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar sectionFruit = Ti.UI.createTableViewSection({ headerTitle: 'Fruit' });\r\nsectionFruit.add(Ti.UI.createTableViewRow({ title: 'Apples' }));\r\nsectionFruit.add(Ti.UI.createTableViewRow({ title: 'Bananas' }));\r\n\r\nvar sectionVeg = Ti.UI.createTableViewSection({ headerTitle: 'Vegetables' });\r\nsectionVeg.add(Ti.UI.createTableViewRow({ title: 'Carrots' }));\r\nsectionVeg.add(Ti.UI.createTableViewRow({ title: 'Potatoes' }));\r\n\r\nvar table = Ti.UI.createTableView({\r\n data: [sectionFruit, sectionVeg]\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n\r\ntable.addEventListener('click', function(e){\r\n\tTi.API.info('click listener:::::::::::'+JSON.stringify(e.index));\r\n});\r\n\r\nvar sectionFish = Ti.UI.createTableViewSection({ headerTitle: 'Fish' });\r\nsectionFish.add(Ti.UI.createTableViewRow({ title: 'Cod' }));\r\nsectionFish.add(Ti.UI.createTableViewRow({ title: 'Haddock' }));\r\n\r\ntable.insertSectionBefore(0, sectionFish);\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add the code above to an existing app.js and build for Android\r\n2. Click {{Cod}} and click {{Apple}}\r\n\r\nh5.Actual\r\n\r\nThe index logged is the same (0)\r\n\r\nh5.Expected\r\n\r\nThe index logged should not be the same, (0 and 2 respectively)", "attachment": [], "flagged": false, "summary": "Android: index in TableView click event is no longer unique", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 1219, "state": "closed", "name": "2021 Sprint 5", "startDate": "2021-03-01T19:02:00.000Z", "endDate": "2021-03-12T19:02:00.000Z", "completeDate": "2021-03-15T03:30:49.472Z", "originBoardId": 114 }, { "id": 1220, "state": "closed", "name": "2021 Sprint 6", "startDate": "2021-03-15T03:31:12.088Z", "endDate": "2021-03-27T03:31:00.000Z", "completeDate": "2021-03-26T19:18:15.760Z", "originBoardId": 114 }, { "id": 1224, "state": "closed", "name": "2021 Sprint 10", "startDate": "2021-05-17T16:31:32.484Z", "endDate": "2021-05-28T16:31:00.000Z", "completeDate": "2021-05-28T22:15:02.543Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458400", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12558", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-12T18:10:55.000+0000", "updated": "2021-03-12T18:10:55.000+0000" }, { "id": "458421", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-15T22:12:45.000+0000", "updated": "2021-03-15T22:12:45.000+0000" }, { "id": "458430", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master; 10_0_X for 10.0.0 target; and 9_3_X branch.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-16T14:05:20.000+0000", "updated": "2021-03-16T14:05:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }