{ "id": "108427", "key": "TIMOB-13337", "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": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "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": "2013-04-09T23:02:11.000+0000", "created": "2013-01-23T13:05:24.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "regression", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:36:21.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "As of 3.0.0 event 'change' is only fired when the user interacts directly and not when other parts of the program changes a value.\r\nTry running the following code in 3.0.0 and 2.1.4 and you will notice the difference.\r\n\r\n{code:title=app.js|borderStyle=solid}\r\n\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar textField = Ti.UI.createTextField({\r\n\tcolor:'#000',\r\n\ttop:10,\r\n\twidth:400,\r\n\theight:'auto'\r\n});\r\n\r\nwin1.add(textField);\r\n\r\ntextField.addEventListener('change',function(e){\r\n\talert(\"I've changed!\");\r\n});\r\n\r\n\r\nvar button = Titanium.UI.createButton({\r\n title: 'Push me!',\r\n width: 100,\r\n height: 50\r\n});\r\n\r\nbutton.addEventListener('click',function(e)\r\n{\r\n textField.value = \"1234\";\r\n});\r\n\r\nwin1.add(button);\r\n\r\n\r\ntabGroup.addTab(tab1); \r\n \r\ntabGroup.open();\r\n\r\n{code} ", "attachment": [], "flagged": false, "summary": "Android: Event 'change' only fired when user interacts (since of 3.0.0)", "creator": { "name": "mathiasi", "key": "mathiasi", "displayName": "Mathias Immerkær", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "mathiasi", "key": "mathiasi", "displayName": "Mathias Immerkær", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android 4.1.1\r\nTitanium SDK 3.0.0, 3.0.2", "comment": { "comments": [ { "id": "246763", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce on latest master. Closing issue.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-09T22:54:44.000+0000", "updated": "2013-04-09T22:54:44.000+0000" }, { "id": "246893", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Probably fixed by TIMOB-12139.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-10T17:55:54.000+0000", "updated": "2013-04-10T17:55:54.000+0000" }, { "id": "414474", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:36:21.000+0000", "updated": "2017-03-21T21:36:21.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }