{ "id": "169967", "key": "TIMOB-25373", "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": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-10-11T21:12:07.000+0000", "created": "2017-10-06T08:13:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "community", "ios" ], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-10-11T23:04:21.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": [], "description": "Open window containing list view with searchbar. Start searching . click any search item and close window in callback of item click. Search view remains.\r\n\r\nTest Case- \r\n{code:java}\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor: 'red',\r\n title: 'Red Window',\r\n});\r\n \r\nvar win2 = Titanium.UI.createWindow({\r\n});\r\n \r\n var button = Titanium.UI.createButton({\r\n title: 'Open List Window',\r\n});\r\nvar rows = [];\r\nfor (var i = 0; i < 5; i++) {\r\n rows.push({ properties: { title: 'Row '+ i , backgroundColor: 'red', searchableText:'Row '+i}});\r\n}\r\n\r\nvar sb = Ti.UI.createSearchBar();\r\nvar ls = Ti.UI.createListSection({\r\n items: rows\r\n});\r\n \r\n var lv = Ti.UI.createListView({\r\n top : 0,\r\n sections: [ls],\r\n searchView: sb,\r\n});\r\n\r\nsb.addEventListener('return', function(e){\r\n sb.blur();\r\n});\r\nlv.addEventListener('itemclick', function(e) {\r\n Ti.API.info('click at index: ' + e.itemIndex);\r\n win2.close();\r\n}); \r\nwin2.add(lv);\r\n\r\nbutton.addEventListener('click', function(){\r\n win2.open();\r\n});\r\n \r\nwin1.add(button);\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Search result view of List did not close when widow containing list view get closed.", "creator": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "428812", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master) - https://github.com/appcelerator/titanium_mobile/pull/9508\r\nPR (6_3_X) - https://github.com/appcelerator/titanium_mobile/pull/9509\r\n\r\nTest Case - \r\n{code:java}\r\nvar rows = [];\r\nfor (var i = 0; i < 20; i++) {\r\n rows.push({ title: 'Row '+ i});\r\n}\r\n \r\n \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#ffffff',\r\n});\r\n\r\n var button = Titanium.UI.createButton({\r\n title: 'Open TableView Window',\r\n});\r\n\r\nwin.add(button);\r\n \r\nvar win2 = Titanium.UI.createWindow({\r\n});\r\n \r\nvar sb = Ti.UI.createSearchBar();\r\n \r\nvar lv = Ti.UI.createTableView({\r\n hideSearchOnSelection: false,\r\n data: rows,\r\n search: sb,\r\n});\r\n sb.setHintText(\"test\");\r\n \r\nwin2.add(lv);\r\n\r\nlv.addEventListener('click', function(e) {\r\n Ti.API.info('click at index: ' + e.index); \r\n win2.close();\r\n})\r\n \r\n button.addEventListener('click', function(){\r\n win2.open();\r\n});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-09T04:59:11.000+0000", "updated": "2017-10-09T04:59:11.000+0000" }, { "id": "428967", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Able to perform a search and close the containing view without the search results remaining. Tested using the provided case as well as the searchbar suite", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-11T21:12:07.000+0000", "updated": "2017-10-11T21:12:07.000+0000" }, { "id": "428978", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified in SDK builds 6.3.0.v20171011142527 & 7.0.0.v20171011150724", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-11T23:04:21.000+0000", "updated": "2017-10-11T23:04:21.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }