{ "id": "123710", "key": "TIMOB-15985", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-07-06T20:43:46.000+0000", "created": "2013-12-13T15:53:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam", "iOS7" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-06T20:43:50.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": "h5. Problem Description\r\n\r\nCHANGE event called twice when Clear button tapped on Search Bar.\r\n\r\nh5. Test Environment \r\n\r\nOS: MAC OS X 10.8.5\r\nTi SDK: 3.1.3 GA, 3.2.0.x\r\nTi CLI: 3.2.0-cr3\r\nIOS simulator 7.0\r\n\r\n\r\nh5. Test Code\r\n\r\n{code}\r\nvar mainWindow = Ti.UI.createWindow();\r\n\r\nvar mainView = Ti.UI.createView();\r\nvar searchBar = Ti.UI.createSearchBar();\r\nvar table = Ti.UI.createTableView({\r\n\tsearch : searchBar\r\n});\r\n\r\n \r\nsearchBar.addEventListener('change', function(_event) {\r\n\t \r\n\tconsole.log('Text : ' + searchBar.value + ', Parameters : ' + JSON.stringify(_event));\r\n\t \r\n\tvalue = searchBar.value;\r\n});\r\n\r\nmainView.add(table);\r\nmainWindow.add(mainView);\r\nmainWindow.open();\r\n\r\n{code}\r\n\r\nh5. Step to reproduces\r\n\r\n# Create a simple titanium project\r\n# Update app.js to test code\r\n# Run no test environment \r\n# Type few text in search bar, clear button will appears in search Bar \r\n# Click on clear (x) button \r\n# Check console log change event will call twice \r\n\r\nh5. Expected Result \r\n\r\nChange event will call twice in clear button tap \r\n\r\n\r\nh5. Actual Result \r\n\r\nIt should be call once \r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: 'change' event called twice when 'Clear' button tapped on Search Bar", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "IOS 7.0, Ti CLI 3.2.0-cr3, Ti SDK 3.1.3.GA, 3.2.0\r\nTi CLI 3.2.1, Ti SDK 3.2.1.GA", "comment": { "comments": [ { "id": "301881", "body": "This issue was previously scheduled to be worked on in more than one sprint:\r\n* 'Release 3.0.1' (on board 'Customer Issues')\r\n* 'Release 3.1.2' (on board '3.1.X Triage')\r\n* 'Release 3.0.1/TS 3.0.2' (on board '3.1.0 Triage')\r\n\r\nStarting from JIRA Agile 6.3, an issue can only belong to a single future sprint. Read more about this change: http://docs.atlassian.com/agile/docs-0630/Sprint+Marker+Migration\r\n\r\nThis issue is now scheduled for future sprint 'Release 3.1.2' (on board '3.1.X Triage').\r\n\r\nIf this is incorrect, please update the issue accordingly.\r\n\r\nThis comment was automatically generated by JIRA. If it is no longer relevant, please feel free to delete it.", "created": "2014-04-21T15:32:17.000+0000", "updated": "2014-04-21T15:32:17.000+0000" }, { "id": "318381", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.4.0.GA \r\niOS SDK: 7.1 \r\niOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-13T05:25:37.000+0000", "updated": "2014-08-18T13:18:59.000+0000" }, { "id": "318457", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~shameerj] and [~sunila]. We should test this in 3.2.0 and 3.4.0 (latest master).\r\n\r\n* If it cannot be reproduced in 3.2.0, then mark as Can't Reproduce, with no fix version\r\n* If it can be reproduced in 3.2.0 but not in 3.4.0, mark as Fixed in 3.4.0\r\n\r\nReopening.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-13T16:20:43.000+0000", "updated": "2014-08-13T16:20:43.000+0000" }, { "id": "318664", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I see no justification this should have ben re-resolved. See my comments above, follow those instructions, and then report your updated findings.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T16:11:59.000+0000", "updated": "2014-08-14T16:11:59.000+0000" }, { "id": "423614", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-06T20:43:37.000+0000", "updated": "2017-07-06T20:43:37.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }