{ "id": "98014", "key": "TIMOB-10145", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-26T18:22:41.000+0000", "created": "2012-07-25T16:04:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "parity", "qe-and070112" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-01-26T18:22:41.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": "Description:\r\nWhile testing KitchenSink in the textfield area, We attempted to use \"the rest\" test and the test for \"clearOnEdit\" did not clear text from the field when the property was set. \r\n\r\nThis is not a regression, this occurs with 2..0.1GA2 as well.\r\n\r\nSteps to reproduce:\r\n1) Launch KitchenSink, navigate to Controls > TextField > the rest\r\n2) enter text into the text field\r\n3) manipulate the \"clear on edit\" button until the desired result is achieved \r\n(3 presses, first logs in console \"undefined\", second, \"true\", third \"false\" which is actually true)\r\n4) Attempt to edit text again\r\n\r\nResult:\r\nthe existing text remains\r\n\r\nExpected:\r\nThe existing text is removed on field entry", "attachment": [], "flagged": false, "summary": "Android: textField - clearOnEdit does not seem to function", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.7.4\r\nSDK 2.1.1.v20120723131610 and 2.0.1GA2\r\nLG Experience (2.3.6)\r\nMotorola Xoom (4.0.3)", "comment": { "comments": [ { "id": "240517", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "the problem can reproduce with release 3.0.2 and master 3.1.0\n\ntested on:Titanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-04T10:57:34.000+0000", "updated": "2013-03-04T10:57:34.000+0000" }, { "id": "405285", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Already working. Text gets cleared on entering the textfield:\r\n\r\n* SDK: 6.0.1.GA\r\n* Android 6.0.1\r\n* HTC A9\r\n\r\n*Test code:*\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n layout:\"vertical\"\r\n});\r\n\r\nvar tf = Ti.UI.createTextField({\r\n clearOnEdit: true,\r\n borderWidth: 1,\r\n color: \"#000\",\r\n borderColor: \"#000\",\r\n left: 10,\r\n right: 10,\r\n value: \"asdfasdfasfd\"\r\n})\r\nvar tf2 = Ti.UI.createTextField({\r\n clearOnEdit: true,\r\n borderWidth: 1,\r\n color: \"#000\",\r\n borderColor: \"#000\",\r\n left: 10,\r\n right: 10,\r\n value: \"asdfasdfasfd\"\r\n})\r\nvar tf3 = Ti.UI.createTextField({\r\n clearOnEdit: true,\r\n borderWidth: 1,\r\n color: \"#000\",\r\n borderColor: \"#000\",\r\n left: 10,\r\n right: 10,\r\n value: \"asdfasdfasfd\",\r\n passwordMask:true\r\n})\r\n\r\nwin.add(tf);\r\nwin.add(tf2);\r\nwin.add(tf3);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\nRelated code: https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/widget/TiUIText.java#L404", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-25T18:45:43.000+0000", "updated": "2017-01-25T18:45:43.000+0000" }, { "id": "405363", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks [~michael] \r\n\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-26T09:13:00.000+0000", "updated": "2017-01-26T09:13:00.000+0000" }, { "id": "405408", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Using the test case provided by [~michael] I can verify that text does get cleared when clicking into a textfield.\r\n\r\n*Steps taken to verify:*\r\n1. Clicked into a textfield which already had existing text\r\n2. Textfield is cleared \r\n3. Entered text in to the textfield \r\n4. Clicked away from the textfield\r\n5. Clicked back into the textfield \r\n6. Textfield is cleared\r\n\r\n*Environement*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.1.0\r\nNexus 6p (Android 7.1)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium SDK Version: 6.1.0.v20170124122351\r\nTitanium SDK Version: 6.0.2.v20170123140026\r\nXcode: 8.2\r\nAppcelerator Studio: 4.8.1.201612050850\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-26T18:21:48.000+0000", "updated": "2017-01-26T18:21:48.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }