{ "id": "170758", "key": "TIMOB-25655", "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": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-04-17T15:28:25.000+0000", "created": "2018-01-09T12:29:09.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "cursor", "textArea", "textfield" ], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" }, { "id": "19988", "description": "", "name": "Release 7.0.1", "archived": false, "released": true, "releaseDate": "2017-12-21" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-04-17T15:28:30.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": "h6.Reproduce:\r\n1. Add following code to app.js in a class project.\r\n{code}\r\nvar win = Ti.UI.createWindow({});\r\n \r\nvar tf = Ti.UI.createTextField({ \r\n\ttop: 50, \r\n\tright: 20, \r\n\tleft: 20, \r\n}); \r\n \r\nvar btnchange = Ti.UI.createButton({ \r\n\ttitle: \"change\" \r\n}); \r\n \r\nbtnchange.addEventListener('click', function() { \r\n\ttf.value = 'text'; \r\n}); \r\n \r\nwin.add(tf); \r\nwin.add(btnchange); \r\nwin.open();\r\n{code}\r\n2. Run the code to Android Emulator or device.\r\n3. Click change button, you will see the problem\r\n\r\nh6.Note\r\n1.Tested on SDK 6.3.0, 7.0.1and 7.0.0. Same issue.\r\n2.Happens to Android only\r\n3.TextArea component has same issue as well.\r\n\r\nIf it is possible, please provide a workaround before we fix.\r\n", "attachment": [], "flagged": false, "summary": "Android: Set textfield value by coding will make cursor to the beginning of textfield", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 6.3.0 - 7.0.1\r\nAndroid 6.0 and 7.0", "comment": { "comments": [ { "id": "432917", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/9710", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2018-01-09T14:41:29.000+0000", "updated": "2018-01-09T14:41:29.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }