{ "id": "94046", "key": "TIMOB-9848", "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": "13573", "description": "Sprint 2012-15 API", "name": "Sprint 2012-15 API", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-28T19:42:10.000+0000", "created": "2012-06-28T09:59:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "community", "module_textfield", "parity", "qe-testadded" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-26T20:51:35.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": "{code:javascript} \r\n\r\n\tvar window = Ti.UI.createWindow({backgroundColor: 'white'});\r\n\r\nwindow.open();\r\n\r\n\r\nvar txt1 = Ti.UI.createTextField({\r\n top: '10',\r\n left: '10',\r\n right:'10',\r\n height:'30',\r\n color:'#336699',\r\n borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n value: ''\r\n});\r\n\r\nwindow.add(txt1);\r\n\r\ntxt1.addEventListener('change', function(e){\r\n \r\n Ti.API.log('change -- value : '+txt1.value+' (e.value :'+e.value+')');\r\n alert('change -- value : '+txt1.value+' (e.value :'+e.value+')');\r\n \r\n});\r\n\r\n{code} \r\n\r\n1 - Write \"abcd\"\r\n\r\nLogs and alerts show :\r\nchange -- value : a (e.value :a)\r\nchange -- value : ab (e.value :ab)\r\nchange -- value : abc (e.value :abc)\r\nchange -- value : abcd (e.value :abcd)\r\n\r\n2 - Put the cursor between \"b\" and \"c\" and press \"x\"\r\n\r\nLogs and alerts show :\r\nchange -- value : abcdx (e.value :abcdx)\r\nchange -- value : abxcd (e.value :abxcd)\r\n", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.TextField 'change' event fired twice (once with wrong value)", "creator": { "name": "mathiasextremo", "key": "mathiasextremo", "displayName": "Mathias Extremo", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mathiasextremo", "key": "mathiasextremo", "displayName": "Mathias Extremo", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 2.0.2.GA\r\niOS Simulator\r\niPad", "comment": { "comments": [ { "id": "207796", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/2577", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T13:18:23.000+0000", "updated": "2012-07-16T13:18:23.000+0000" }, { "id": "211370", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.2.0.v20120801170113\r\nTested with Titanium  Studio: 2.1.1.201207271312\r\nDevice - Android Emulator 2.3.3,iPad Simulator (5.0), iPad 3 (5.1)\r\nMachine OS - MAC 10.7.3", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-08-03T04:42:28.000+0000", "updated": "2012-08-03T04:42:28.000+0000" }, { "id": "215784", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Occurs on:\r\nTitanium Studio: 2.1.2.201208201549\r\nTitanium SDK: 2.1.2.v20120821160113\r\nDevice: iPad3 (v5.1)\r\nFixed with SDK: 2.2.0.v20120801170113", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T05:18:17.000+0000", "updated": "2012-08-23T05:18:17.000+0000" }, { "id": "221424", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue to add Release2.1.3 tag", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T19:40:14.000+0000", "updated": "2012-09-28T19:40:14.000+0000" }, { "id": "221437", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified on:\r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK, build: 2.1.3.v20120928124610\r\nDevice: iPhone 4 (5.1.1), iPhone Simulator (6.0)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T20:52:34.000+0000", "updated": "2012-09-28T20:52:34.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }