{ "id": "99460", "key": "TIMOB-10574", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-09-11T10:25:39.000+0000", "created": "2012-08-20T14:01:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "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" }, "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": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-01-28T23:48:58.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 fix for issue TIMOB-10374 broke hintText functionality.\r\n\r\nSee attached test case file TC10374.zip. If I click button, correct value should be 'postValue'. Instead field value is 'empty. I tried when view is opened. Same result.\r\n\r\nBroken functionality:\r\n(1) Create TextField object with hintText\r\n(2) Set the value of the textfield with some other value (either after window as opened and before)\r\n(3) This clears the hintText and also set the value to be empty. Now if I get back value, it returns the empty\r\n\r\nThis used to be working in 2.1.1 GA.\r\n\r\nConfirmed on Safari 6", "attachment": [ { "id": "30603", "filename": "TC10374.zip", "author": { "name": "schang@cymtec.com", "key": "schang@cymtec.com", "displayName": "Sehyo Chang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-20T14:01:48.000+0000", "size": 3839014, "mimeType": "application/zip" } ], "flagged": false, "summary": "MobileWeb: HintText functionality is broken", "creator": { "name": "schang@cymtec.com", "key": "schang@cymtec.com", "displayName": "Sehyo Chang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "schang@cymtec.com", "key": "schang@cymtec.com", "displayName": "Sehyo Chang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "2.2.0.v20120817153314", "comment": { "comments": [ { "id": "215349", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I cannot confirm the described behavior with the attached application. Please create a minimum viable test case that clearly demonstrates the behavior. Note that the behavior of hint text has changed: now whenever a text field gains focus, the hint text disappears by design.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-21T10:24:09.000+0000", "updated": "2012-08-21T10:24:09.000+0000" }, { "id": "215353", "author": { "name": "schang@cymtec.com", "key": "schang@cymtec.com", "displayName": "Sehyo Chang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment: Safari 6.\r\n\r\nIf click the field(focus), I am seeing empty value. It should be filled with 'postValue'. And if I retrieved the field value, I get empty string. I traced the source code and verified the statement. Here is offending change:\r\n\r\nhttps://github.com/bryan-m-hughes/titanium_mobile/commit/22d1a5d1d895f6f328c0eb97c4152c8f5dcfd747\r\n-------------------------------------------\r\n- return this._field.value;\r\n \t 130\t\r\n+ return this._showingHint ? \"\" : this._field.value;\r\n---------------------------------------------\r\n\r\nSo if there is showingHint set, it returns empty value\r\n", "updateAuthor": { "name": "schang@cymtec.com", "key": "schang@cymtec.com", "displayName": "Sehyo Chang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-21T10:47:06.000+0000", "updated": "2012-08-21T10:47:06.000+0000" }, { "id": "218389", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This ticket is a duplicate of TIMOB-10639", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-11T10:25:39.000+0000", "updated": "2012-09-11T10:25:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }