{ "id": "104643", "key": "TIMOB-11688", "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": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-11-08T19:19:22.000+0000", "created": "2012-11-07T18:33:21.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity", "qe-ios214" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [ { "id": "22695", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "83454", "key": "TIMOB-7030", "fields": { "summary": "iOS: TableView - click event contains incorrect data when searchbar filter active", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:53:33.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Description:\r\nClick on chosen row returns all table view rows back on iOS. Works fine on Android.\r\n\r\nThis is not a regression, the behavior occurs as far back as 2.1.2 at least.\r\n\r\nSteps:\r\n1. Run the following code:\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\nvar win = Ti.UI.createWindow({});\r\nvar tab = Ti.UI.createTab({\r\n title: 'Table Test',\r\n window: win\r\n});\r\n \r\nvar data = [\r\n {title: 'First Row', hasDetail: true},\r\n {title: 'Second Row', hasDetail: true},\r\n {title: 'Third Row', hasDetail: true},\r\n {title: 'Forth Row', hasDetail: true},\r\n {title: 'Fifth Row', hasDetail: true}\r\n];\r\n \r\nvar search = Ti.UI.createSearchBar({\r\n returnKeyType: Ti.UI.RETURNKEY_DONE\r\n});\r\n \r\nvar tableView = Ti.UI.createTableView({\r\n data: data,\r\n search: search\r\n});\r\n \r\ntableView.addEventListener('click', function (e) {\r\n alert('Click Event. index: ' + e.index + ', Title: ' + e.row.title);\r\n});\r\nwin.add(tableView);\r\ntabGroup.addTab(tab);\r\ntabGroup.open();\r\n{code}\r\n2. Search for any row (e.g. Third)\r\n3. Click on chosen row to get an alert with index and title\r\n\r\nExpected result:\r\nOnly chosen row should be seen in table view\r\n\r\nActual result:\r\nAll rows return back on table view", "attachment": [], "flagged": false, "summary": "iOS: TableView - Click on chosen row returns all table view rows", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nTitanium Studio, build: 3.0.0.201210301422\r\nTitanium SDK, build: 2.1.4.v20121030173408\r\nDevice: iPad mini (6.0)", "comment": { "comments": [ { "id": "226743", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There is a flag that would turn the behavior on and off, so marking it as invalid. Vishal, could you help fill in the particular flag? Thanks.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-08T19:19:12.000+0000", "updated": "2012-11-08T19:19:12.000+0000" }, { "id": "226791", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Look at hideSearchOnSelection\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.TableView-property-hideSearchOnSelection", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-08T23:52:55.000+0000", "updated": "2012-11-08T23:52:55.000+0000" }, { "id": "414932", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:53:33.000+0000", "updated": "2017-03-22T20:53:33.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }