{ "id": "118855", "key": "TIMOB-14928", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-04-21T17:49:00.000+0000", "created": "2013-08-21T10:04:02.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.1.3" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:21:49.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": "This is not a regression.\r\n\r\nTextField Change event is not being fired when textField value changes on button click.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : \"#FFF\"\r\n});\r\n \r\nvar textField = Ti.UI.createTextField({\r\n top: 10,\r\n value : 'TestChangeEvent'\r\n});\r\n \r\ntextField.addEventListener('change', function(e) {\r\n Ti.API.info(\"Change Event Fired: \" + e.value);\r\n});\r\n \r\nwin.add(textField);\r\nwin.open();\r\n \r\nvar button = Ti.UI.createButton({\r\n top: 150,\r\n title: \"change textfield.value\"\r\n});\r\n\r\n// Textfield change event does not gets fired but value changes on iOS but on android both value also changes and change event is fired.\r\n\r\nbutton.addEventListener(\"click\", function(){\r\n textField.value = \"changed\";\r\n});\r\nwin.add(button);\r\n{code}\r\n\r\nSteps to Reproduce:\r\n\r\n1)Copy paste the above mentioned code on mobile classic project's app.js.\r\n2)Run the app.\r\n3)Tap on textField.\r\n4)Edit the text.\r\n5)Click the \"change textfield.value\" button.\r\n\r\nExpected Result:\r\n\r\n2)Window gets open with textField having value \"TestChangeEvent\" and \"change textfield.value\" button.\r\n3)Keyboard gets open.\r\n4)Change event of text field must be fired on every change. Check the console logs.\r\n5)TextField value changes to \"Changed\" and change event of textField must again fire on console.\r\n\r\nActual Result:\r\n\r\n2)Window gets open with textField having value \"TestChangeEvent\" and \"change textfield.value\" button.\r\n3)Keyboard gets open.\r\n4)Change event of text field must be fired on every change. Check the console logs.\r\n5)TextField value changes to \"Changed\" and change event of textField is not fired.\r\n\r\nThe change event gets fired on changing the value of textfield on button click on android(could get the change event fired on console logs) but for iOS no change event is fired when value of textfield changes on button click.\r\n", "attachment": [], "flagged": false, "summary": "iOS: TextField Change event is not being fired when textField value changes on button click.", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Verified Environment:\r\nStudio: 3.1.3.201308201707\r\nSdk: 3.1.3.v20130820141614\r\nacs:1.0.6\r\nalloy:1.2.1-cr\r\ntitanium:3.1.2\r\nOS: OSX 10.8.4\r\nXcode:5 beta 5\r\nDevices:iPhone5(v6.1.4), Android NEXUS 7(v4.3)\r\n", "comment": { "comments": [ { "id": "301915", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "duplicate of TIMOB-16318", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-21T17:49:00.000+0000", "updated": "2014-04-21T17:49:00.000+0000" }, { "id": "414090", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:21:49.000+0000", "updated": "2017-03-20T22:21:49.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }