{ "id": "132170", "key": "TIMOB-17210", "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-02-13T15:39:48.000+0000", "created": "2014-06-24T08:13:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "listener", "textarea", "textfield" ], "versions": [], "issuelinks": [], "assignee": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "updated": "2018-03-05T23:58:15.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": "Try the code below.\r\n\r\nA textfield change listener is wrongly triggered also if the value is programmatically set before the creation.\r\n\r\nThis happen only on Android, and only if the change event listener is created after the ui thread.\r\n\r\n\r\n{code}\r\nvar w = Ti.UI.createWindow({\r\n\tlayout:'vertical',\r\n\tbackgroundColor:'white'\t\r\n});\r\n\r\n\r\nvar input = Ti.UI.createTextField({\r\n\twidth:\"100%\",\r\n\tvalue:'default',\r\n\ttop:100\r\n});\r\n\r\ninput.value = 'pre UI value';\r\ninput.addEventListener('change', function(e){\r\n\talert('this is alert is shown only on user input');\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle:\"Set a new value and then add change listener\"\r\n});\r\nbutton.addEventListener('click', function(){\r\n\tinput.value = 'new value';\r\n\tinput.addEventListener('change', function(e){\r\n\t\talert('this is alert is shown on android');\r\n\t});\r\n});\r\n\r\nw.add(input);\r\nw.add(button);\r\nw.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TextField/TextArea \"change\" event should not trigger when setting \"value\" or \"attributedString\" properties", "creator": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK 3.2.1, Titanium Studio 3.2.3, Mac OSX 10.9.3 / Windows 7\r\nDevice: Android 4.2.2, Android 4.4.4 ", "closedSprints": [ { "id": 1000, "state": "closed", "name": "2018 Sprint 04 SDK", "startDate": "2018-02-12T04:23:01.913Z", "endDate": "2018-02-26T04:23:00.000Z", "completeDate": "2018-02-26T19:36:01.769Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "310870", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nThank you for your ticket. I will forward this ticket to our engineer team. \r\n\r\nRegards,\r\nShuo Liang", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-25T10:54:51.000+0000", "updated": "2014-06-25T10:54:51.000+0000" }, { "id": "310871", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Tested with this code, when we change the textfield value programmatically, like above code: {quote}input.value = 'new value';{quote}. For android device, it will trigger change event, but for IOS device, it will not trigger change event. ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-25T11:00:01.000+0000", "updated": "2014-06-25T11:00:01.000+0000" }, { "id": "430220", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hi guys, any news on this?\r\nThis bug causes a lot of trouble for me(tested with 6.3.0GA, on Android 7.1 Nexus 5X device and still present). \r\nThanks", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2017-11-07T14:04:17.000+0000", "updated": "2017-11-07T14:06:15.000+0000" }, { "id": "431189", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hi guys,\r\ncan you please fix it and implement to 7.0GA SDK release?\r\nThanks ", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2017-11-22T20:40:27.000+0000", "updated": "2017-11-22T20:40:27.000+0000" }, { "id": "432573", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hello guys, \r\nany news on this? I need this fixed to finish and release app.\r\nThanks", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2017-12-28T09:10:34.000+0000", "updated": "2017-12-28T09:10:34.000+0000" }, { "id": "432838", "author": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same here. +1", "updateAuthor": { "name": "clement", "key": "clement", "displayName": "Clément Blanco", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-08T11:23:39.000+0000", "updated": "2018-01-08T11:23:39.000+0000" }, { "id": "432841", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hi Clément,\r\ndid you find any workaround? I'm hopeless, that this bug is reported 3years ago and still not resolved and no one from Appc reacted to my requests...\r\n\r\nI have textfield and when I enter some value, tableview shows up with autocomplete suggestion. I click on tableview's row and it writes new value to textfield. Problem is, that when I click on tableview, it appears again and again(because of this bug). \r\nThanks", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2018-01-08T12:42:05.000+0000", "updated": "2018-01-08T12:42:05.000+0000" }, { "id": "432842", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/9700", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2018-01-08T13:42:46.000+0000", "updated": "2018-01-08T13:42:46.000+0000" }, { "id": "433178", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hi Maggie,\r\nhow it is looking with review? When we can expect integration into SDK?\r\nThanks", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2018-01-16T10:12:41.000+0000", "updated": "2018-01-16T10:12:41.000+0000" }, { "id": "434287", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hi guys,\r\nany news on this fix? I'm still waiting for this to be fixed, status says, that it's in review for 1 month and no information provided since then.\r\nPlease post some new info when we can expect fix for this bug.\r\nThanks", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2018-02-09T12:19:02.000+0000", "updated": "2018-02-09T12:19:02.000+0000" }, { "id": "434431", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "@Joshua Quick\r\nHi Joshua, when we can expect release 7.1.0?\r\nThanks", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2018-02-13T20:42:36.000+0000", "updated": "2018-02-13T20:42:36.000+0000" }, { "id": "434544", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (7.1.x): https://github.com/appcelerator/titanium_mobile/pull/9834", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-15T21:12:44.000+0000", "updated": "2018-02-15T21:12:44.000+0000" }, { "id": "435218", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 7.2.0.v20180302144729 & 7.1.0.v20180302141418.\r\n\r\nClosing.\r\n\r\nStudio Ver: 5.0.0.201712081732\r\nOS Ver: 10.13.2\r\nXcode Ver: Xcode 9.2\r\nAppc NPM: 4.2.12\r\nAppc CLI: 7.0.2\r\nDaemon Ver: 1.0.1\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.11.0\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 5 --- Android 6.0.1\r\n ⇨ google Nexus 6P --- Android 8.0.0\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-05T23:58:07.000+0000", "updated": "2018-03-05T23:58:07.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }