{ "id": "172197", "key": "TIMOB-26372", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-13T07:25:19.000+0000", "created": "2018-09-08T09:44:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "20220", "name": "Release 7.3.1", "archived": false, "released": true, "releaseDate": "2018-08-30" } ], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-09-13T12:42:23.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Steps to reproduce the behavior*\r\nAdd the following code to your app.js of a classic project:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\nconst textArea = Ti.UI.createTextArea({\r\n\tbackgroundColor: 'lightgray',\r\n\theight: 100,\r\n\twidth: 200\r\n});\r\ntextArea.addEventListener('change', (e) => {\r\n\t// This will trigger an additional change event and duplicate input\r\n\ttextArea.value = e.value;\r\n});\r\nwin.add(textArea);\r\nwin.open();\r\n{code}\r\n\r\n*Actual behavior*\r\nAny input will be duplicated in the TextView itself. For example pressing 'H' will result in 'HH' appearing in the TextView.\r\n\r\n*Expected behavior*\r\nThe value of the text view can be assigned without any side effects.\r\n\r\n*Additional notes*\r\nThis is required for the two-way binding in Vue.js. The iOS TextField does not have this issues, neither does any of the text widgets on Android.", "attachment": [], "flagged": false, "summary": "iOS: Assigning text value in change event causes duplicated input on TextView", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1073, "state": "closed", "name": "2018 Sprint 19 SDK", "startDate": "2018-09-09T21:02:56.422Z", "endDate": "2018-09-23T21:02:00.000Z", "completeDate": "2018-09-23T22:28:10.932Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "441533", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Verified improvement in SDK version: {{7.5.0.v20180913035354}}. Assigning text value in change event no longer causes duplicated input on TextView.\r\n\r\n*FR Passed (Test Steps):*\r\n# Created a new Titanium application\r\n# Added the code above in to the application\r\n# Installed app on to the device\r\n# Ran the app\r\n# Entered text in to the textview \r\n# No longer saw duplicated text\r\n\r\n*Environment*\r\n{code:java}\r\nAPPC Studio: 5.1.0.201808080937\r\nAPPC CLI: 7.0.6\r\niphone 6 (12.0)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13.6\r\nNode.js Version: 8.9.1\r\nXcode 10.0 beta 6\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-13T12:42:16.000+0000", "updated": "2018-09-13T12:42:16.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }