{ "id": "166240", "key": "AC-4820", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-02-28T17:02:22.000+0000", "created": "2017-02-23T13:04:35.000+0000", "labels": [ "alloy", "bindings", "listitem", "switch" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-28T17:02:22.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "I'm using a ListView with a custom ListItem template, however, the \"itemclick\" event does not trigger on the parent ListView element, when I click the Switch element which is part of the ListItem.\r\n\r\n{code:xml}\r\n\r\n \r\n \r\n\r\n{code}\r\n\r\n- Clicking the \"notification\" element triggers fine on the 'itemclick' event ({\"bindId\": \"notification\"} is available).\r\n- Clicking on the ListItem itself (neither clicking the Label/Switch) triggers 'itemclick', however does not give a bindId, as expected\r\n- Clicking the \"toggleable\" element does not trigger 'itemclick' at all\r\n\r\nAdding `touchEnabled=\"false\"` to the Switch element does seem to trigger the itemclick event, however this does not change the value of the switch.\r\n\r\nIn addition (unrelated to the bug), the docs do not explicitly say a \"Ti.UI.View\" element is supported within a ListItem (as seen in http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListItem, ctrl+f for \"A list template supports the following view classes:\"), however I've been using them previously and they seem to be working as intended.", "attachment": [], "flagged": false, "summary": "ListItem does not bubble Switch Element", "creator": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "environment": " iOS 10.1, Ti SDK 6.0.1, Alloy 1.9.5", "comment": { "comments": [ { "id": "407732", "author": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "body": "Update: I managed to do a workaround using \r\n{noformat}\r\n\r\n{noformat}\r\n\r\nThen the \"myFunc\" will be called in the associated controller with the proper event details. However this is not expected behaviour, especially when everything else in my whole application has event listeners attached through the controller namespace ($.myobj.addEventListener...)", "updateAuthor": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "created": "2017-02-23T13:50:42.000+0000", "updated": "2017-02-23T13:50:42.000+0000" }, { "id": "407734", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please share a full sample code that regenerates the behavior without the workaround. If the bug is real we will fix it ASAP. Create a sample code only to demonstrate the issue. Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-23T14:17:30.000+0000", "updated": "2017-02-23T14:17:30.000+0000" }, { "id": "407735", "author": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "body": "Unfortunately I cant spend the 2 hours needed to create a contained testcase. I'm already losing much time on creating workarounds for very basic features", "updateAuthor": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "created": "2017-02-23T14:20:10.000+0000", "updated": "2017-02-23T14:20:10.000+0000" }, { "id": "407960", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, We need to validate the bug before we can move to fixing. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-24T14:58:52.000+0000", "updated": "2017-02-24T14:58:52.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }