{ "id": "99869", "key": "TIMOB-10639", "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:21.000+0000", "created": "2012-08-27T10:33:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-port" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20742", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "99460", "key": "TIMOB-10574", "fields": { "summary": "MobileWeb: HintText functionality is broken", "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": "20997", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "101119", "key": "TIMOB-10913", "fields": { "summary": "MobileWeb: UI.TextField: passwordMask blocks hintText", "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 } } } }, { "id": "20363", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99628", "key": "TIMOB-10565", "fields": { "summary": "MobileWeb: TextField - clearing value when focused ", "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-06T19:38:48.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": "h4. Mobileweb Textfield hides hintText if value is set to an empty string\r\nWhen creating a textfield with no value and hintText of 'required', setting the value to '' will cause the value to be shown instead of the hintText in mobileweb even though the value is empty.\r\nThis works correctly in iOS as a comparison.\r\n\r\nh4. Steps to reroduce:\r\n1. Copy the code below into a new project\r\n2. Run using MobileWeb\r\n3. Note the textfield has no text\r\n\r\n4. Run using iOS\r\n5. Note the textfield says 'Required'\r\n\r\nh4. CODE:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nwin.open();\r\nvar view = Ti.UI.createView({\r\n\theight: 500,\r\n\twidth: 500,\r\n\tbackgroundColor: 'blue'\r\n});\r\nvar text = Ti.UI.createTextField({\r\n\thintText: 'Required',\r\n\tbackgroundColor: '#FFF',\r\n\twidth: 200,\r\n\theight: 60\r\n});\r\nview.add(text);\r\n//This line should not cause the hintText to disappear\r\ntext.value = '';\r\n\r\nwin.add(view);\r\n{code}", "attachment": [ { "id": "31343", "filename": "app.js", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-14T10:45:00.000+0000", "size": 3067, "mimeType": "application/x-javascript" }, { "id": "31230", "filename": "app.js", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-12T10:44:11.000+0000", "size": 2903, "mimeType": "application/x-javascript" }, { "id": "31171", "filename": "app.js", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-11T13:52:17.000+0000", "size": 1828, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "MobileWeb: Textfield hides hintText when value is set to empty", "creator": { "name": "amiller", "key": "amiller", "displayName": "Alexander Miller", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amiller", "key": "amiller", "displayName": "Alexander Miller", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Google Chrome Version 21.0.1180.79\r\nInternet Explorer Version 9.0.8112.16421\r\nTi SDK 2.2.0.v20120821151712", "comment": { "comments": [ { "id": "218428", "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:51:57.000+0000", "updated": "2012-09-11T13:51:57.000+0000" }, { "id": "230265", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested on: \r\nTitanium Studio, build: 3.0.0.201211301903\r\nTitanium SDK, build: 3.0.0.v20121204181658\r\nDevice: iPhone 4 (5.1.1)\r\nMac OS X Lion 10.7.5 - Safari Version 5.1.7, Google Chrome Version 23.0.1271.95", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-06T19:38:32.000+0000", "updated": "2012-12-06T19:38:32.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }