{ "id": "63606", "key": "TIMOB-2974", "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": "11365", "description": "Mobile 1.8.0 M12", "name": "Sprint 2011-33", "archived": true, "released": true, "releaseDate": "2011-08-22" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-27T15:43:14.000+0000", "created": "2011-04-15T03:33:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-10-27T15:43:14.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": "{html}

When using labels in table rows, if the row is clicked while\r\ntable is in searchMode, the row retains the row\r\nhighlightedColor.

\r\n

Reproduce by modifying Kitchen Sink table_view_api_search.js as\r\nfollows:

\r\n
\r\nvar win = Titanium.UI.currentWindow;\r\n\r\n// create table view data object\r\nvar data = [];\r\n\r\ndata[0] = Ti.UI.createTableViewRow({hasChild:true});\r\ndata[1] = Ti.UI.createTableViewRow({hasDetail:true});\r\ndata[2] = Ti.UI.createTableViewRow({hasCheck:true});\r\ndata[3] = Ti.UI.createTableViewRow({});\r\n\r\nfor (var i=0; i < data.length; i++) {\r\n    data[i].add(Ti.UI.createLabel({\r\n        text:'foo',\r\n        height:30,\r\n        highlightedColor:'red'\r\n    }));\r\n    \r\n    data[i].filter = 'foo';\r\n};\r\n\r\nvar search = Titanium.UI.createSearchBar({\r\n    barColor:'#385292',\r\n    showCancel:false,\r\n    hintText:'search'\r\n});\r\nsearch.addEventListener('change', function(e)\r\n{\r\ne.value; // search string as user types\r\n});\r\nsearch.addEventListener('return', function(e)\r\n{\r\nsearch.blur();\r\n});\r\nsearch.addEventListener('cancel', function(e)\r\n{\r\nsearch.blur();\r\n});\r\n\r\n// create table view\r\nvar tableview = Titanium.UI.createTableView({\r\n    data:data,\r\n    search:search,\r\n    searchHidden:true,\r\n    filterAttribute:'filter'\r\n});\r\n\r\n\r\n// create table view event listener\r\ntableview.addEventListener('click', function(e)\r\n{\r\n    // event data\r\n    var index = e.index;\r\n    var section = e.section;\r\n    var row = e.row;\r\n    var rowdata = e.rowData;\r\n    Titanium.UI.createAlertDialog({title:'Table View',message:'row ' + row + ' index ' + index + ' section ' + section  + ' row data ' + rowdata}).show();\r\n});\r\n\r\nvar hide = Titanium.UI.createButtonBar({\r\n    labels:['Hide', 'Show'],\r\n    backgroundColor:'#336699',\r\n    height:25,\r\n    width:120\r\n});\r\n\r\n\r\n// add table view to the window\r\nwin.add(tableview);\r\n\r\nhide.addEventListener('click', function(e)\r\n{\r\n    Ti.API.info(\"search hidden = \"+tableview.searchHidden);\r\n    if (e.index == 0)\r\n    {\r\n        tableview.searchHidden = true;\r\n    }\r\n    else if (e.index == 1)\r\n    {\r\n        tableview.scrollToTop(0,{animated:true});\r\n    }\r\n});\r\nif (Titanium.Platform.name == 'iPhone OS') {\r\n    win.setRightNavButton(hide);\r\n}\r\n
{html}", "attachment": [], "flagged": false, "summary": "iPhone row label highlightedColor stuck after search mode table row click", "creator": { "name": "tommy", "key": "tommy", "displayName": "Tommy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tommy", "key": "tommy", "displayName": "Tommy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129788", "author": { "name": "tommy", "key": "tommy", "displayName": "Tommy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This problem is still present in 1.6.

{html}", "updateAuthor": { "name": "tommy", "key": "tommy", "displayName": "Tommy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:33:59.000+0000", "updated": "2011-04-15T03:33:59.000+0000" }, { "id": "162008", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "A helpdesk customer just pointed out this issue to me. It persists in Ti SDK 1.7.3 (v20110801092156.67ae819)\r\n\r\nHelpdesk Ticket:\r\nAPP-155327", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-08-05T09:44:14.000+0000", "updated": "2011-08-05T09:44:14.000+0000" }, { "id": "164345", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested On:\n\nMac OSX Lion\nTiMob: 1.8.0.v20110819142548\nTiStud: 1.0.4.201108101535\n\nDevices:\n\niPhone 4 version 4.2.10\niPad2 version 4.3.5\niPod 3", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-29T10:41:43.000+0000", "updated": "2011-08-29T10:41:43.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }