{ "id": "113464", "key": "TIMOB-13721", "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": "15564", "description": "2013 Sprint 15 API", "name": "2013 Sprint 15 API", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-23T21:25:20.000+0000", "created": "2013-04-27T00:36:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_textfield", "qe-closed-3.1.2", "qe-testadded", "regression" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "28817", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "106881", "key": "TIMOB-12139", "fields": { "summary": "Android: Textfield change event behaves differently in 2.1.4 and 3.0.0 SDK", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "34612", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "125455", "key": "TIMOB-16318", "fields": { "summary": "TextField: Events - 'change' event does not get fired if you change TextField.value from a Button 'click' callback", "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": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-01-27T18:50:02.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": "*Problem description*\r\nWhen a label is initialized, it fires of a change event even though nothing has changed yet\r\n\r\n*Steps to reproduce*\r\n1. Deploy the test case to device.\r\n2. Check the logcat output.\r\n3. The change event is printed.\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\nvar textField = Ti.UI.createTextField({\r\n\tvalue : 'test123'\r\n});\r\n\r\ntextField.addEventListener('change', function(e) {\r\n\tTi.API.info(\"Change Event Fired: \" + e.value);\r\n});\r\n\r\nwin.add(textField);\r\nwin.open();\r\n{code}\r\n\r\n*Note*\r\nThis works correctly in 3.1.0.GA but seems to be broken in CI builds. It doesn't seem to make much sense since nothing changed yet, this is the starting value.", "attachment": [], "flagged": false, "summary": "Android: TextField fires change event on first initialization (SDK 3.2)", "creator": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "environment": "Ti SDK 3.2.0.v20130424025011\r\nMac OSX\r\nAndroid 2.x & 4.X", "comment": { "comments": [ { "id": "249490", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed regression on Samsung Galaxy S2 Android 2.3.6 between 3.1 GA and 3.2.0.v20130426092515. The event is fired on initialization only with 3.2.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-29T23:25:06.000+0000", "updated": "2013-04-29T23:25:06.000+0000" }, { "id": "252250", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/4275\r\nRemoving isTruncatingText to call shouldFireChange method while change the text", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-16T09:31:09.000+0000", "updated": "2013-05-16T09:31:09.000+0000" }, { "id": "252312", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The change event is fired on first initialization in 2.1.4. There is a regression bug TIMOB-12139 in 3.0.0 and 3.1.0 and we fixed that in 3.1.1 [PR#4193|https://github.com/appcelerator/titanium_mobile/pull/4193]. So the current behavior is actually the same as 2.1.4.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-16T18:25:25.000+0000", "updated": "2013-05-16T18:25:25.000+0000" }, { "id": "252313", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "An extended test case:\n{code}\nvar win = Ti.UI.createWindow({\n backgroundColor : \"#FFF\"\n});\n \nvar textField = Ti.UI.createTextField({\n\ttop: 10,\n value : 'test123'\n});\n \ntextField.addEventListener('change', function(e) {\n Ti.API.info(\"Change Event Fired: \" + e.value);\n});\n \nwin.add(textField);\nwin.open();\n\nvar button = Ti.UI.createButton({\n\ttop: 150,\n\ttitle: \"change textfield.value\"\n});\nbutton.addEventListener(\"click\", function(){\n\ttextField.value = \"changed\";\n});\nwin.add(button);\n{code}\nWhen click the button, the change event should be fired.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-16T18:28:55.000+0000", "updated": "2013-05-16T18:28:55.000+0000" }, { "id": "261204", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ran the extended test case in the comment and it failed.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-10T00:06:56.000+0000", "updated": "2013-07-10T00:06:56.000+0000" }, { "id": "262833", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "New pull request submitted\n\nhttps://github.com/appcelerator/titanium_mobile/pull/4473\n\nDisable firing 'change' event during processproperties", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-07-23T16:12:01.000+0000", "updated": "2013-07-23T16:12:01.000+0000" }, { "id": "266711", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified fix with:\nTitanium Studio, build: 3.1.2.201308091617\nTitanium SDK, build: 3.1.2.v20130814124556\nAlloy: 1.2.0-beta\nCLI: 3.1.2-alpha\nDevice:\nGalaxyS4 Android version 4.2.2\n\nChange is fired on button click", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-15T18:09:34.000+0000", "updated": "2013-08-15T18:09:34.000+0000" }, { "id": "267452", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated label and added TestApp.\r\n\r\nVerified 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", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-21T09:54:27.000+0000", "updated": "2013-08-21T09:54:27.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }