{ "id": "99628", "key": "TIMOB-10565", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14160", "description": "Sprint 2012-19 JS", "name": "Sprint 2012-19 JS", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-17T08:18:38.000+0000", "created": "2012-08-22T16:14:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20363", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "99869", "key": "TIMOB-10639", "fields": { "summary": "MobileWeb: Textfield hides hintText when value is set to empty", "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 } } } } ], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-12-05T21:40:42.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "The text set by the value property in textField is being cleared when you focus the textField. Also, textField.value does not have the correct value if it was set durring creation.\r\n\r\nh4. Steps to repro (text disappearing):\r\n1. run the code below\r\n2. notice the text in the text field\r\n3. click on the text field\r\n4. notice that the text in the field disappears\r\n\r\nh4. Steps to repro (value empty):\r\n1. run the code below\r\n2. click anywhere\r\n3. notice the alert dialog pop up, but the textField has no value\r\n4. type in the text field\r\n5. click again\r\n6. notice that the textField now has a value\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nwin.open();\r\n\r\nvar textField = Ti.UI.createTextField({\r\n\theight: 50,\r\n\twidth: 300,\r\n\tbackgroundColor: 'yellow',\r\n\tvalue: \"some text\"\r\n});\r\nwin.add(textField);\r\n\r\nwin.addEventListener('click', function(){\r\n\talert('Value: '+textField.value);\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: TextField - clearing value when focused ", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK v2.2.0.v20120821151712\r\nChrome Version 21.0.1180.79", "comment": { "comments": [ { "id": "216671", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2850\r\nPR rejected, still needs to be fixed.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-28T18:06:08.000+0000", "updated": "2012-09-04T10:19:06.000+0000" }, { "id": "218429", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2907", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-11T13:52:40.000+0000", "updated": "2012-09-11T13:52:40.000+0000" }, { "id": "230118", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue to be fixed.\r\nThe text in the textfield does not disappear when we click in the text field.\r\nBoth cases mentioned in the issue are not reproducible.Thus closing the issue.\r\nTitanium studio : 3.0.0.201211301903\r\nSDK Version : 3.0.0.v20121204154658\r\nOS : OSX 10.8.2\r\nChrome : 21.0.1180.57\r\n", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-05T21:40:42.000+0000", "updated": "2012-12-05T21:40:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }