{ "id": "85943", "key": "TIMOB-7540", "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": "12095", "description": "", "name": "Sprint 2012-03", "archived": true, "released": true, "releaseDate": "2012-02-12" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:29:02.000+0000", "created": "2012-02-03T11:03:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_label", "qe-testadded", "regression" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [ { "id": "14990", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "85016", "key": "TIMOB-7243", "fields": { "summary": "Android: iOS: UI Event Listener Parity", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15727", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85834", "key": "TIMOB-7510", "fields": { "summary": "Longpress Event in iOS Webview not working", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-13T13:23:41.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": "iOS: Titanium.UI.Label: click event fails to fire. Regression. Works in 1.7.5. Works on Android.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\tlayout:'vertical'\r\n\t});\r\n\t\r\nvar label = Ti.UI.createLabel({\r\n\ttext:'Click Label',\r\n\tcolor:'black',\r\n\theight:'auto',\r\n\twidth:'auto'\r\n\t});\r\n\r\nwin.add(label);\r\nwin.open();\r\n\r\nlabel.addEventListener('click',function(){\r\n\tTi.API.info('Label Clicked');\r\n\tlabel.text = 'Label Clicked';\r\n});\r\n{code}\r\n\r\n2. Click label.\r\n\r\nExpected Result:\r\n\r\nLabel text should change to 'Label Clicked', and\r\n'Label Clicked' should print to the console.\r\n\r\nActual Result:\r\n\r\nNothing happens.\r\n\r\nNote: Will investigate more hardware in future.", "attachment": [], "flagged": false, "summary": "iOS: Titanium.UI.Label: click event fails to fire", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.8.0.1 githash=fbdc96f, 1.8.1 githash=a24502a, 1.8.2.v20120202103135\r\nStudio: 1.0.8.201201262211\r\nOS: Lion\r\nDevices Tested: iPhone Simulator 5.0, iPad Simulator 5.0, iPhone4 5.0.1", "comment": { "comments": [ { "id": "182064", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Take a look at TiUIView.m, namely that now that I added gesture recognizers, I removed the toggling of userInteractionEnabled, since default is YES, and it turns out gesture recognizers don't care about view enablement (Test to see if \"singletap\" still triggers--that uses recognizers, click doesn't). It might be that the default of userInteractionEnabled is NO on UILabel, which may suppress the touch events that lead to click messages. If you jury-rig userInteractionEnabled to YES on TIUIView, and the regression magically goes away, then you know what to do.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-06T11:57:55.000+0000", "updated": "2012-02-06T11:57:55.000+0000" }, { "id": "182081", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the tip, Blain.\r\nHowever the issue is related to when the click listener is attached: before or after window open. ", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-06T13:13:23.000+0000", "updated": "2012-02-06T13:13:23.000+0000" }, { "id": "182410", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120207171634\r\nTitanium Studio, build: 1.0.8.201201262211\r\nxcode: 4.2\r\nDevices: iphone 4S Sprint (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-08T12:53:39.000+0000", "updated": "2012-02-08T12:53:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }