{ "id": "112253", "key": "TIMOB-13404", "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": "15400", "description": "2013 Sprint 08 API", "name": "2013 Sprint 08 API", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15106", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "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-05-03T10:16:36.000+0000", "created": "2013-04-05T14:01:18.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "SupportTeam", "qe-testadded", "regression" ], "versions": [], "issuelinks": [ { "id": "32975", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "121894", "key": "TIMOB-15621", "fields": { "summary": "Android: convertPointToView gives different results with SDK 3.1.3 compared to 3.0.2", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-31T23:00:06.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": "h2. Description of the problem\r\nUsing an app with username and password fields, when a text is entered in the first, then the cursor goes to the second, the value of the first text field is not valid anymore (it takes the password's value).\r\n\r\nh2. Steps to reproduce\r\n- Run the following code on Android\r\n- See the logs with adb logcat\r\n- Enter something in the username field (e.g. \"foo\") - you will see \"foo/\" in the log\r\n- Click the return button, and start writing something in the password field (e.g. \"bar\") - you will see \"bar/bar\" in the log\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar usernameRow = Ti.UI.createTableViewRow({\r\n height: \"45dp\",\r\n backgroundColor: \"#fff\",\r\n className: \"loginRow\",\r\n id: \"usernameRow\"\r\n});\r\n\r\nvar __alloyId1 = [];\r\n__alloyId1.push(usernameRow);\r\n\r\nvar usernameLabel = Ti.UI.createLabel({\r\n left: \"5dp\",\r\n width: \"100dp\",\r\n height: Ti.UI.SIZE,\r\n color: \"#333\",\r\n font: {\r\n fontSize: \"16dp\"\r\n },\r\n text: \"Username\",\r\n id: \"usernameLabel\"\r\n});\r\nusernameRow.add(usernameLabel);\r\n\r\nvar usernameField = Ti.UI.createTextField({\r\n left: \"110dp\",\r\n right: \"10dp\",\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL,\r\n color: \"#333\",\r\n backgroundColor: \"#fff\",\r\n autocorrect: !1,\r\n returnKeyType: Titanium.UI.RETURNKEY_NEXT,\r\n id: \"usernameField\"\r\n});\r\nusernameRow.add(usernameField);\r\n\r\nvar passwordRow = Ti.UI.createTableViewRow({\r\n height: \"45dp\",\r\n backgroundColor: \"#fff\",\r\n className: \"loginRow\",\r\n id: \"passwordRow\"\r\n});\r\n\r\n__alloyId1.push(passwordRow);\r\n\r\nvar passwordLabel = Ti.UI.createLabel({\r\n left: \"5dp\",\r\n width: \"100dp\",\r\n height: Ti.UI.SIZE,\r\n color: \"#333\",\r\n font: {\r\n fontSize: \"16dp\"\r\n },\r\n text: \"Password\",\r\n id: \"passwordLabel\"\r\n});\r\npasswordRow.add(passwordLabel);\r\n\r\nvar passwordField = Ti.UI.createTextField({\r\n left: \"110dp\",\r\n right: \"10dp\",\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL,\r\n color: \"#333\",\r\n backgroundColor: \"#fff\",\r\n passwordMask: !0,\r\n returnKeyType: Titanium.UI.RETURNKEY_DONE,\r\n id: \"passwordField\"\r\n});\r\npasswordRow.add(passwordField);\r\n\r\nvar formView = Ti.UI.createTableView({\r\n left: \"10dp\",\r\n right: \"10dp\",\r\n width: Ti.UI.FILL,\r\n backgroundColor: \"transparent\",\r\n top: \"10dp\",\r\n height: Ti.UI.SIZE,\r\n borderWidth: \"1dp\",\r\n borderRadius: 10,\r\n borderColor: \"#999\",\r\n selectedBackgroundColor: \"transparent\",\r\n data: __alloyId1,\r\n id: \"formView\"\r\n});\r\n\r\nwin1.add(formView);\r\n\r\nusernameField.addEventListener(\"change\", function(e) {\r\n Ti.API.info(\"[---Login---] Connection: \" + usernameField.value + \"/\" + passwordField.value);\r\n});\r\nusernameField.addEventListener(\"return\", function() {\r\n Ti.API.info(\"[---Login---] Connection: \" + usernameField.value + \"/\" + passwordField.value);\r\n passwordField.focus();\r\n});\r\npasswordField.addEventListener(\"return\", function(e) {\r\n Ti.API.info(\"[---Login---] Connection: \" + usernameField.value + \"/\" + passwordField.value);\r\n});\r\n\r\nwin1.open();\r\n{code}\r\n\r\nh2. Additional info\r\nThe code above is what is generated by Alloy - the bug was found using it. Using SDK 2.1.4 the problem is not visible.", "attachment": [ { "id": "37068", "filename": "titanium-bug-android-textfield-value.zip", "author": { "name": "timoa", "key": "timoa", "displayName": "Damien Laureaux", "active": true, "timeZone": "Europe/London" }, "created": "2013-04-05T14:01:18.000+0000", "size": 7399602, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: TextField update value on Return event", "creator": { "name": "timoa", "key": "timoa", "displayName": "Damien Laureaux", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "timoa", "key": "timoa", "displayName": "Damien Laureaux", "active": true, "timeZone": "Europe/London" }, "environment": "OSX 10.8.3\r\nTitanium Studio 3.0.2.201302191606\r\nSDK 3.0.2.GA", "comment": { "comments": [ { "id": "245951", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "The problem does not seem to be related with Alloy. Updated the bug with a code that replicates the issue with the SDK 3.0.2. I cannot replicate switching back to 2.1.4", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-05T15:36:47.000+0000", "updated": "2013-04-05T15:36:47.000+0000" }, { "id": "246015", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Problem is related to className property of the tableView row. If you remove the className from the TableViewRow proxies it works fine", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T18:55:47.000+0000", "updated": "2013-04-05T18:56:01.000+0000" }, { "id": "246042", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\nhttps://github.com/appcelerator/titanium_mobile/pull/4102", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T20:44:02.000+0000", "updated": "2013-04-05T20:44:02.000+0000" }, { "id": "246043", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending \r\nhttps://github.com/appcelerator/titanium_mobile/pull/4102", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T20:44:59.000+0000", "updated": "2013-04-05T20:44:59.000+0000" }, { "id": "248652", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_1_X\nhttps://github.com/appcelerator/titanium_mobile/pull/4205", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T18:51:30.000+0000", "updated": "2013-04-22T18:51:30.000+0000" }, { "id": "250067", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\n \r\nSDK:3.1.1.v20130502180055\r\nAppcelerator Studio: 3.1.1.201305020729\r\nOS: OSX 10.7.5\r\nDevice: htc desire(4.0.3)\r\nXcode: 4.6\r\n", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-03T10:14:25.000+0000", "updated": "2013-05-03T10:16:21.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }