{ "id": "176232", "key": "TIMOB-28492", "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": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-06-23T16:09:26.000+0000", "created": "2021-06-11T00:00:23.000+0000", "priority": null, "labels": [ "blur", "ios", "searchBar" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-09-16T10:19:57.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": "I have a view with three TableViews controlled by a custom tabs. Each TableView has a SearchBar instantiated in Alloy. When I search between the tabs, I call the blur() function on each SearchBar. However, I notice that the SearchBar does not lose focus. As a result, if I enter text in say SearchBar #1, then switch to Search #2, the search functionality breaks and will not work.\r\n\r\nHowever, if I go back to Search #1 and press Cancel, and then back to Search #2 that is shown when I press on the second tab, I am then able to successfully search. ", "attachment": [ { "id": "67940", "filename": "image-2021-06-10-19-56-57-001.png", "author": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "created": "2021-06-10T23:56:57.000+0000", "size": 115717, "mimeType": "image/png" }, { "id": "67937", "filename": "simulator_screenshot_26393208-5C8C-49EA-BDC3-31418A1FBEB5.png", "author": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "created": "2021-06-10T23:59:48.000+0000", "size": 60921, "mimeType": "image/png" }, { "id": "67938", "filename": "simulator_screenshot_C28CF3BC-5AF2-44A6-858F-1D8232183EAD.png", "author": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "created": "2021-06-10T23:59:35.000+0000", "size": 123540, "mimeType": "image/png" }, { "id": "67939", "filename": "simulator_screenshot_F75A37CF-DAB1-4E64-A6AC-1E24CC165B37.png", "author": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "created": "2021-06-10T23:59:25.000+0000", "size": 60589, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: SearchBar blur function not working on iOS", "creator": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "environment": " 9.3.2.GA", "comment": { "comments": [ { "id": "458797", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*TEST CASE*\r\n1. Enter text into _Search A_\r\n2. Click _Toggle List_\r\n3. Enter text into _Search B_, list *should* update but does not\r\n{code:js}\r\nconst win = Titanium.UI.createWindow({ layout: 'vertical' });\r\n\r\nconst toggle = Ti.UI.createButton({ top: 80, title: 'Toggle List' });\r\n\r\nconst search_a = Ti.UI.createSearchBar({ hintText: 'Search A' });\r\nconst search_b = Ti.UI.createSearchBar({ hintText: 'Search B' });\r\n\r\nconst tableView_a = Ti.UI.createTableView({\r\n data: [createSection(5, 'A')],\r\n search: search_a,\r\n height: '40%' });\r\n\r\n\r\nconst tableView_b = Ti.UI.createTableView({\r\n data: [createSection(5, 'B')],\r\n search: search_b,\r\n height: '40%',\r\n visible: false });\r\n\r\n\r\ntoggle.addEventListener('click', e => {\r\n tableView_a.visible = tableView_b.visible;\r\n tableView_b.visible = !tableView_b.visible;\r\n\r\n if (!tableView_a.visible) {\r\n search_a.blur();\r\n }\r\n if (!tableView_b.visible) {\r\n search_b.blur();\r\n }\r\n});\r\n\r\nwin.add([toggle, tableView_a, tableView_b]);\r\nwin.open();\r\n\r\nfunction createSection(rows, suffix) {\r\n const section = Ti.UI.createTableViewSection({\r\n headerTitle: \"Section \".concat(suffix) });\r\n\r\n\r\n for (let i = 1; i <= rows; i++) {\r\n section.add(Ti.UI.createTableViewRow({\r\n title: \"Row #\".concat(i) }));\r\n\r\n }\r\n\r\n return section;\r\n}\r\n{code}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-17T22:20:08.000+0000", "updated": "2021-06-17T22:20:08.000+0000" }, { "id": "458799", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12906", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-17T23:21:50.000+0000", "updated": "2021-06-17T23:21:50.000+0000" }, { "id": "458811", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "merged to master and 10_0_X", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-06-23T16:09:22.000+0000", "updated": "2021-06-23T16:09:22.000+0000" }, { "id": "459048", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Might have introduced an issue here: https://github.com/appcelerator/titanium_mobile/issues/13070\r\nIf I revert the changes it works for me again ", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2021-09-16T10:19:57.000+0000", "updated": "2021-09-16T10:19:57.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }