{ "id": "163178", "key": "TIMOB-24052", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-10-24T19:31:58.000+0000", "created": "2016-09-13T02:58:12.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "regression", "sdk-5.4", "textArea" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-25T01:30: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": "previously using Ti SDK 5.3\r\n\r\nbellow code execute as expected\r\n{code:java}\r\n var message = Ti.UI.createTextArea({\r\n\t \teditable : false,\r\n\t \twidth: Ti.UI.SIZE,\r\n\t height: Ti.UI.SIZE,\r\n\t scrollable : false,\r\n\t });\r\n\t \r\n\t message.addEventListener('click', function(){\r\n\t \tconsole.log(\"Message Clicked\");\r\n\t });\r\n{code}\r\n\r\n\r\nfrom Ti SDK 5.4 'click' event or 'longpress' or any event listener is not working unless I remove 'editable : false,' from text ares. \r\n\r\nexpected behaviour :: Textares event listeners should work even Textarea object define as 'editable : false ' ", "attachment": [], "flagged": false, "summary": "Android: Event-listeners in Ti.UI.TextArea not working when editable = false (Regression)", "creator": { "name": "djayamaha", "key": "djayamaha", "displayName": " Dharshana Jayamaha ", "active": true, "timeZone": "Asia/Singapore" }, "subtasks": [], "reporter": { "name": "djayamaha", "key": "djayamaha", "displayName": " Dharshana Jayamaha ", "active": true, "timeZone": "Asia/Singapore" }, "environment": "Ti SDK 5.4\r\nAndroid", "closedSprints": [ { "id": 741, "state": "closed", "name": "2016 Sprint 22 SDK", "startDate": "2016-10-22T00:02:29.945Z", "endDate": "2016-11-05T00:02:00.000Z", "completeDate": "2016-11-07T04:38:58.335Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "396915", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Seeing the same with 5.5 SDK.\r\n\r\nOne workaround that I'm using is that I happen to be putting the textArea into a container view so I set touchEnabled = false for the textArea and I set the eventListener on the container view.\r\nThat avoids the ugly look of having a cursor show up in the textArea.", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-22T06:47:54.000+0000", "updated": "2016-09-22T06:47:54.000+0000" }, { "id": "398353", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested the issue. I wasn't able to reproduce the issue with the below code. The click event works fine in textarea.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\nvar textArea = Ti.UI.createTextArea({\r\n borderWidth : 2,\r\n borderColor : '#bbb',\r\n borderRadius : 5,\r\n color : '#888',\r\n font : {\r\n fontSize : 20,\r\n fontWeight : 'bold'\r\n },\r\n keyboardType : Ti.UI.KEYBOARD_NUMBER_PAD,\r\n returnKeyType : Ti.UI.RETURNKEY_GO,\r\n textAlign : 'left',\r\n value : 'I am a textarea',\r\n top : 60,\r\n width : 300,\r\n height : 70\r\n});\r\nwin.add(textArea);\r\ntextArea.addEventListener('click', function() {\r\n\r\n console.log(\"Message Clicked\");\r\n\r\n});\r\n\r\nwin.open(); \r\n{code}\r\n\r\nI am testing on\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\nTitanium CLI\r\n CLI Version = 5.0.9\r\nTitanium SDK\r\n SDK Version = 5.5.1.GA\r\n Target Platform = Android 6.0.1 (Galaxy j7 device).\r\n\r\nIt's not a valid bug. Thanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-10-07T14:50:38.000+0000", "updated": "2016-10-07T14:55:25.000+0000" }, { "id": "398403", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sharif, \r\n\r\nWell, not exactly, you missed the major point of this problem.\r\n\r\nYou did NOT set the *editable* property to FALSE. Had you done that, you would have found that the textArea does NOT respond to click events.\r\n\r\nThat was in the original report and your code does not do that.\r\n\r\n_from Ti SDK 5.4 'click' event or 'longpress' or any event listener is not working unless I remove 'editable : false,' from text areas._", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-07T20:14:23.000+0000", "updated": "2016-10-07T20:14:23.000+0000" }, { "id": "399394", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, This is a valid bug. TextArea click event does not work when editable is set to false. I can reproduce the issue in Android 6.0.1 Device. ", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-19T17:48:55.000+0000", "updated": "2016-10-20T03:48:24.000+0000" }, { "id": "399652", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8533", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-24T06:42:19.000+0000", "updated": "2016-10-24T06:42:19.000+0000" }, { "id": "399704", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master (6.1.0), cherry-picked to 6_0_X. Not sure if that means it'll get into 6.0.0 GA or a 6.0.1 when/if we do one.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-10-24T19:31:58.000+0000", "updated": "2016-10-24T19:31:58.000+0000" }, { "id": "399731", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "It'll get into 6.0.0. Thanks!", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-24T22:32:35.000+0000", "updated": "2016-10-24T22:32:35.000+0000" }, { "id": "399751", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nEventListeners for TextArea work when editable is set to false.\r\nClosing.\r\n\r\nAppc Studio : 4.8.0.201610171310\r\nSDK Version : 6.0.0.v20161024145110\r\nMac OS Version : 10.11.6\r\nXcode Version : Xcode 8.0 Build version 8A218a\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.8-9\",\"CLI\":\"6.0.0-64\"}\r\nTi CLI : 5.0.10\r\nAlloy : 1.9.3\r\nNode : v4.6.0\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-25T01:30:18.000+0000", "updated": "2016-10-25T01:30:18.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }