{ "id": "139859", "key": "TIMOB-18048", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-03-25T02:02:41.000+0000", "created": "2014-11-17T12:28:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "TSP", "andorid", "html", "label", "module_label", "qe-manualtest", "qe-testadded" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" }, { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" } ], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-03-27T20:26:48.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": "h4. Problem Description \r\nOnce you set the html property in a label, the click event is lost. \r\n\r\nh4. Test Case\r\n1. Create a new mobile project Classic titanium\r\n2. Paste this code into app.js: \r\n {code:title=app.js|borderStyle=solid}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\nvar lbl = Ti.UI.createLabel({\r\n backgroundColor: \"red\",\r\n html: \"Click here Visit W3Schools.com!\"\r\n});\r\nlbl.addEventListener(\"click\", function(){\r\n alert(\"clicked\");\r\n});\r\nwin.add(lbl);\r\nwin.open();\r\n{code}\r\n3. Run it in a 4.0.x device.\r\n4. Click the label\r\n\r\nh4. Expected results\r\nAfter clicking the label, an alert should appear. \r\n\r\nh4. Actual results \r\nalert is not shown. ", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.Label.html - setting html property makes it non-clickable", "creator": { "name": "mano.mykingdom", "key": "mano.mykingdom", "displayName": "Manoj Kumar", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "mano.mykingdom", "key": "mano.mykingdom", "displayName": "Manoj Kumar", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Appcelerator Studio & Titanium 3.4.1.GA\r\nAlloy 1.5.1\r\nAndroid 2.3\r\n\r\nDevice: Xperia Play \r\nAndroid Version 4.0.4 \r\nMobile SDK 3.4.1.GA SDK.", "closedSprints": [ { "id": 362, "state": "closed", "name": "2015 Sprint 06 SDK", "startDate": "2015-03-14T13:56:53.868Z", "endDate": "2015-03-28T00:00:00.000Z", "completeDate": "2015-03-30T17:32:33.590Z", "originBoardId": 114 }, { "id": 272, "state": "closed", "name": "2014 Sprint 25 SDK", "startDate": "2014-12-08T22:49:31.264Z", "endDate": "2014-12-22T01:00:00.000Z", "completeDate": "2015-01-05T18:18:28.523Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "332678", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Problem can be reproduced on\r\nTitanium SDK 3.4.0.GA\r\nAndroid 2.3.6\r\nSAMSUNG-SGH-I777", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-18T09:39:22.000+0000", "updated": "2014-11-18T09:39:22.000+0000" }, { "id": "332688", "author": { "name": "mano.mykingdom", "key": "mano.mykingdom", "displayName": "Manoj Kumar", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Seems this issue exists with 4.0 too. Reproduced on the following devices.\r\n\r\n1. Galaxy S2 GT-i1900 - Android 4.0.3\r\n2. Motorola MB526 - Android 2.3.4\r\n\r\nBut working fine with following devices,\r\n\r\n1. Nexus 4 - Android 4.4.4\r\n2. Galaxy S4 GT-I9500 - Android 4.4.2 \r\n", "updateAuthor": { "name": "mano.mykingdom", "key": "mano.mykingdom", "displayName": "Manoj Kumar", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-11-18T10:55:58.000+0000", "updated": "2014-11-18T10:55:58.000+0000" }, { "id": "335701", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6460", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-09T21:40:23.000+0000", "updated": "2014-12-09T21:40:23.000+0000" }, { "id": "335708", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "I would be careful when testing, and make sure that anchor tags in the html still click properly, too.", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2014-12-09T22:03:44.000+0000", "updated": "2014-12-09T22:03:44.000+0000" }, { "id": "335867", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added an anchor tag to the test case. For FR, please run the test case on pre-JB device and click the label to see the alert. If you click on the hyperlink inside the label, it will open the browser and go to that webpage.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-10T20:18:08.000+0000", "updated": "2014-12-10T20:18:08.000+0000" }, { "id": "338097", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. Click event works even after setting the labels html property.\r\n\r\nClosing\r\n\r\nEnvironment:\r\nAppc Studio : 3.4.1.201410281743\r\nTi SDK : 3.5.0.v20150106150919, 3.6.0.v20150106160923\r\nCLI : 3.4.1\r\nAlloy : 1.5.1 GA\r\nCode Processor : 1.1.1\r\nMAC Yosemite : 10.10\r\nSamsung Galaxy S3 - android 4.0.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-07T01:23:29.000+0000", "updated": "2015-01-07T01:23:29.000+0000" }, { "id": "340743", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "~lchoudhary, were you able to test this on android 2.3 (API level 10) and above devices. I tested with 3.5.0.GA and it fails.", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2015-01-27T13:03:08.000+0000", "updated": "2015-01-27T13:03:08.000+0000" }, { "id": "340802", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Below is the matrix for the results on different android versions for this issue:\r\n||SDK 3.6.0.v20150127082526|| Result||\r\n|2.3.7| Alert is seen\r\n|4.0.4| Alert is seen\r\n|4.1.1| Alert is seen\r\n|4.3| Alert is seen\r\n|4.2.2| Alert is seen\r\n|4.4.4| No alert seen\r\n|5.0.1| No alert seen\r\n\r\n||SDK 3.5.0.GA|| Result||\r\n|2.3.7| No alert seen\r\n|4.0.4| No alert seen\r\n|4.1.1| Alert is seen\r\n|4.3| Alert is seen\r\n|4.2.2| Alert is seen\r\n|4.4.4| No alert seen\r\n|5.0.1| No alert seen\r\n\r\nPlease note the fix version is \"Release 3.6.0\". \r\nReopening the ticket as this issue is seen in android 4.4.4 & 5.0.1 when built with SDK 3.6.0.v20150127082526.\r\n\r\nEnvironment:\r\nAppc Studio : 3.4.1.201410281743\r\nTi SDK : 3.5.0.GA, 3.6.0.v20150127082526\r\nCLI : 3.4.1\r\nAlloy : 1.5.1 GA\r\nCode Processor : 1.1.1\r\nMAC Yosemite : 10.10", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-27T19:04:33.000+0000", "updated": "2015-01-27T19:04:33.000+0000" }, { "id": "345944", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Trying to reproduce this with 4.4.4 and 5.0.0 Android on master branch.\r\nSo far, unable to reproduce. ", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-13T07:47:06.000+0000", "updated": "2015-03-13T07:47:06.000+0000" }, { "id": "346026", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tried this with:-\r\nMaster Branch\r\n3.5.1.GA\r\n3.5.0.GA\r\n3.4.1.GA\r\n\r\nWith the following Android OS:\r\n4.4.2 Samsung Galaxy S 5 (SM-G900F)\r\n4.4.4 Nexus 4\r\n5.0 Nexus 9\r\n\r\nUnable to reproduce.\r\n\r\nAble to click the label and get an alert. Also able to click the website link which opens the web browser.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-16T04:37:14.000+0000", "updated": "2015-03-16T04:38:46.000+0000" }, { "id": "346027", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~lchoudhary] Are you still able to reproduce this?", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-16T04:45:27.000+0000", "updated": "2015-03-16T04:45:27.000+0000" }, { "id": "347201", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~msamah]I tried to reproduce the issue on the devices below with SDK 4.0.0.v20150323131014 & I am not able to see the issue:\r\n1. Galaxy Nexus 4.2.2 - Alert is seen.\r\n2. Samsung Galaxy S2 2.3.6 - Alert is seen.\r\n3. Nexus 5 5.1- Alert is seen.\r\n\r\nEnvironment:\r\nAppc Studio : 4.0.0.201503232213\r\nTi SDK : 4.0.0.v20150323131014\r\nCLI : 4.0.0-alpha\r\nAlloy : 1.6.0-alpha\r\nMAC Yosemite : 10.10.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-25T00:31:48.000+0000", "updated": "2015-03-25T00:32:06.000+0000" }, { "id": "347211", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~lchoudhary]\r\nI'll resolve this ticket as issue is not reproducible. ", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-25T01:55:02.000+0000", "updated": "2015-03-25T02:02:29.000+0000" }, { "id": "347212", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Does it mean we fix it in Ti.SDK 4.0", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-03-25T02:07:21.000+0000", "updated": "2015-03-25T02:07:21.000+0000" }, { "id": "347213", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "This problem shouldn't be seen in Ti.SDK 4.0.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-25T02:13:33.000+0000", "updated": "2015-03-25T02:13:33.000+0000" }, { "id": "347214", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Got it. Thanks", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-03-25T02:17:06.000+0000", "updated": "2015-03-25T02:17:06.000+0000" }, { "id": "347398", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sdavenport] This was incorrectly assigned a fix version. That said, it may actually be fixed--we just can't reproduce it any more.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-26T03:32:14.000+0000", "updated": "2015-03-26T03:32:14.000+0000" }, { "id": "415925", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T20:26:48.000+0000", "updated": "2017-03-27T20:26:48.000+0000" } ], "maxResults": 24, "total": 24, "startAt": 0 } } }