{ "id": "117107", "key": "TIMOB-14530", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-03T05:33:51.000+0000", "created": "2013-07-11T20:53:22.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-09-12T22:35:42.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": "ENVIRONMENT:\r\nMac OS X 10.7.5\r\nAppcelerator Studio, build: 3.1.1.201306131423\r\nTiSDK 3.1.1.GA and 3.2.0.v20130710174319\r\nXcode 4.5.2 / iOS 6.1\r\nAndroid 4.2\r\n\r\nREPRODUCTION:\r\nRun the code below in the iOS simulator, then click on the rows.\r\n\r\nRESULTS:\r\nThe click event is only fired when clicking on the button. If you click on the label, image or anywhere besides the button, the click event does not fire.\r\n\r\nOTHER INFO:\r\nWorks fine on the Android emulator.\r\nClick events fire if it is added to the child template.\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\n \r\nvar plainTemplate = {\r\n childTemplates: [\r\n {\r\n type: 'Ti.UI.Label',\r\n bindId: 'rowtitle',\r\n properties: {\r\n left: '10dp'\r\n }\r\n },\r\n {\r\n type: 'Ti.UI.ImageView',\r\n bindId: 'pic',\r\n properties: {\r\n image: 'KS_nav_ui.png'\r\n }\r\n },\r\n {\r\n type: 'Ti.UI.Button',\r\n bindId: 'button',\r\n properties: {\r\n width: '80dp',\r\n height: '30dp',\r\n right: '10dp',\r\n title: 'press me'\r\n }\r\n }\r\n ],\r\n events: { click : report }\r\n\r\n};\r\n \r\nfunction report(e) {\r\n Ti.API.info(e.type);\r\n}\r\n \r\nvar listView = Ti.UI.createListView({\r\n templates: { 'plain': plainTemplate },\r\n defaultItemTemplate: 'plain'\r\n});\r\n \r\nvar data = [];\r\nfor (var i = 0; i < 10; i++) {\r\n data.push({\r\n rowtitle : { text: 'Row ' + (i + 1) },\r\n });\r\n}\r\n\r\nvar section = Ti.UI.createListSection({items: data});\r\nlistView.sections = [section];\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Click event added to the ItemTemplate does not fire when clicking on a child view component (ListView)", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "321514", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug exist with TiSDK 3.1.1.GA and 3.2.0 but cannot reproduce with 3.4.0 GA\r\nAppcelerator Studio, build: 3.3.0.201407111535\r\n iOS 6.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-03T05:33:19.000+0000", "updated": "2014-09-03T05:33:19.000+0000" }, { "id": "323455", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified the click event gets fired when pressing on the button, label, and imageView.\r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 3.4.0.201409112242\r\nSDK build: 3.4.0.v20140912120914\r\nCLI: 3.4.0-rc2\r\nAlloy: 1.5.0-rc\r\nXcode: 6 GM Seed\r\nDevices: iphone 5 (8.0 GM Seed), iphone 5 (7.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-12T22:35:36.000+0000", "updated": "2014-09-12T22:35:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }