{ "id": "106002", "key": "AC-2039", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-04-02T23:42:01.000+0000", "created": "2012-12-05T16:42:11.000+0000", "labels": [ "searchbar", "ui" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:59.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "{code}\r\n var win = Ti.UI.createWindow({});\r\n var SearchBar = Ti.UI.createSearchBar({\r\n\t\ttop: 0,\r\n\t\tshowCancel: true,\r\n\t\theight: '42dp',\r\n\t});\r\n win.add(SearchBar);\r\n\r\n win.open();\r\n SearchBar.blur();\r\n{code}\r\n\r\nIn this instance the keyboard disappears, but the Cancel button becomes inactive. As an example of why this is incorrect behaviour see the default Mail app on an iPad.\r\n\r\nPerform a search in mail. Lower the keyboard. Cancel remains active and the user can dismiss search.\r\n", "attachment": [], "flagged": false, "summary": "Bluring the SearchBar should not disable Cancel button", "creator": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "environment": "iOS 6.0\r\nSDK 2.1.4\r\nXcode 4.5", "comment": { "comments": [ { "id": "230058", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the report, can you clarify the iOS version and Titanium SDK version?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-05T17:15:21.000+0000", "updated": "2012-12-05T17:15:21.000+0000" }, { "id": "230105", "author": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "body": "Sorry, updated main ticket.\r\nBut note that Q&A shows posts about this going back to previous iOS SDKs and Ti SDKs", "updateAuthor": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "created": "2012-12-05T20:38:54.000+0000", "updated": "2012-12-05T20:38:54.000+0000" }, { "id": "245359", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Looking at the source code, it looks like we have no control over this since we're calling the native API directly:\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUISearchBar.m#L89", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T23:42:01.000+0000", "updated": "2013-04-02T23:42:01.000+0000" }, { "id": "280994", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Invalid issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:18:35.000+0000", "updated": "2013-11-24T22:18:35.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }