{ "id": "64219", "key": "TIMOB-3587", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-01T20:32:32.000+0000", "created": "2011-04-15T03:46:57.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "edit", "reported-1.7.0", "textfield" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T21:36:54.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": "{html}

Steps to Reproduce:
\n1. Launch KitchenSink
\n2. Run Controls > TextField > The Rest
\n3. Type something into the text field
\n4. Click on \"Clear on Edit\"
\n5. Click into the text field

\n

Actual Result:
\nText is not cleared, gets cleared when you hit done

\n

Expected Result:
\nClear the text when edit is invoked

\n

Tested on:
\nNexus S 2.3.2 Titanium SDK version: 1.7.0 (Apr 12 2011 15:24\nrcc9dd9e1)

{html}", "attachment": [], "flagged": false, "summary": "Android: Setting \"Clear on Edit\" clears the text when the user completes typing instead of when edit is invoked", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "159251", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In other testing, I noticed that when commenting out the following code, the text remained in the field. clearOnEdit still didn't clear the text on focus in my case, but at least what was typed remains in the field:\r\n\r\ntf1.addEventListener('return', function()\r\n{\r\n\ttf1.blur();\r\n});", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-11T17:03:19.000+0000", "updated": "2011-07-11T17:03:19.000+0000" }, { "id": "418361", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as invalid as this version of Kitchen Sink is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-01T20:32:32.000+0000", "updated": "2017-05-01T20:32:32.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }