{ "id": "168981", "key": "TIMOB-24966", "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": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-07T22:25:08.000+0000", "created": "2017-07-17T21:47:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "merge-6.1.2" ], "versions": [ { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "issuelinks": [ { "id": "55717", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "169203", "key": "TIMOB-25038", "fields": { "summary": "(Windows) When \"SearchBar.showCancel\" Is used and the \"X\" is pressed text is removed but not \"X\"", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-09-18T20:29:25.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5. Issue Description \r\n\r\nThe Ti.UI.SearchBar's showCancel=false is not returning the proper value \r\n\r\nh5. Steps to reproduce\r\n# Download the sample App https://drive.google.com/file/d/0BwTWo-c2a0b9eFJNTWIwek1tSmM/view?usp=sharing\r\n# Launch the sample app (can be tested deploying with -T ws-local) - a search bar will appear on it.\r\n# Type something on it and see how an \"X\" icon appears in the right side of the search bar.\r\n\r\n**This works on Android and iOS.", "attachment": [], "flagged": false, "summary": "Windows: Ti.UI.SearchBar's showCancel=false is ignored", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 6.1.1 GA \r\nCLI 6.2.2", "closedSprints": [ { "id": 933, "state": "closed", "name": "2017 Sprint 16 SDK", "startDate": "2017-07-30T16:17:10.306Z", "endDate": "2017-08-13T16:17:00.000Z", "completeDate": "2017-08-13T23:06:34.398Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "424626", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "As far as I see, there's no way to remove \"X\" icon from UWP's [AutoSuggestBox|https://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/auto-suggest-box]. I would think this as platform component specification to keep consistency with other UWP components such as [TextBox|https://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/text-box]. I would take this ticket as \"won't fix\" because of platform component spec. [~eharris] [~gmathews] Any thoughts on this?\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-25T00:32:32.000+0000", "updated": "2017-07-25T00:32:32.000+0000" }, { "id": "424636", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~kiguchi] The only way I know of doing that would be to edit the XAML template and then remove the DeleteButton element. I found this UserVoice (it is for TextBox but similar element behaviour) which seems to be on the backlog, neither of the workarounds provided there translate to a AutoSuggestBox (simply at least) https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/6930042-textbox-property-to-show-hide-delete-button", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-25T09:49:50.000+0000", "updated": "2017-07-25T09:49:50.000+0000" }, { "id": "424644", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks [~eharris], it helps. I also found this article: [AutoSuggestBox styles and templates|https://msdn.microsoft.com/en-us/library/windows/apps/mt185404.aspx]. This recalls me that we might be able to get the instance of {{DeleteButton}} component using [VisualTreeHelper|https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.media.visualtreehelper] so we can hide it explicitly. (We used to use {{VisualTreeHelper}} to [get scrollbar component from ListView|https://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/UI/src/ListView.cpp#L82]). I will try.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-25T13:01:58.000+0000", "updated": "2017-07-25T13:01:58.000+0000" }, { "id": "424857", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1045\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1046\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1047", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-26T23:28:54.000+0000", "updated": "2017-07-26T23:28:54.000+0000" }, { "id": "424997", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_1_X: Has been merged as it was a priority. https://github.com/appcelerator/titanium_mobile_windows/pull/1046. Waiting to test 6_2_X and master", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-27T21:21:19.000+0000", "updated": "2017-07-27T21:21:19.000+0000" }, { "id": "426050", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~rramirez] This one is already released, available in [6.1.2.GA|http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_SDK_6.1.2.GA_Release_Note].", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-07T22:25:08.000+0000", "updated": "2017-08-07T22:25:08.000+0000" }, { "id": "426059", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~smohammed] Could you do qe-test for https://github.com/appcelerator/titanium_mobile_windows/pull/1047 ? Then it's ok to merge for [master|https://github.com/appcelerator/titanium_mobile_windows/pull/1045] too because 6_2_X and master are pretty much same now.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-07T22:58:33.000+0000", "updated": "2017-08-07T22:58:33.000+0000" }, { "id": "428041", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Changes seen in 6.2.0 GA.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-18T20:29:18.000+0000", "updated": "2017-09-18T20:29:18.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }