{ "id": "133436", "key": "AC-1353", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-08-03T15:27:55.000+0000", "created": "2014-07-21T04:28:13.000+0000", "labels": [ "bubbleparent", "tableview" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:46.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "As the following example shows you will still get 2 alerts if you click on the button, even though the button sets {{cancelBubble = true}}, which should prevent the event from bubbling to the row and table.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar row = Ti.UI.createTableViewRow();\r\nvar btn = Ti.UI.createButton({title:'click me'});\r\n\r\nbtn.addEventListener('click', function(e) {\r\n e.cancelBubble = true;\r\n alert('hi from row');\r\n});\r\n\r\nrow.add(btn);\r\n\r\nvar table = Ti.UI.createTableView({\r\n top: 20,\r\n data: [row]\r\n});\r\n\r\ntable.addEventListener('click', function(e) {\r\n alert('hi from table');\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Setting cancelBubble TRUE doesn't work in TableView", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.3.0.GA", "comment": { "comments": [ { "id": "316584", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi, \r\n\r\nYou'd better change line 9 to\r\n{code}\r\nbtn.bubbleParent = false;\r\n{code}\r\nas the e stands for the event for callback function, not the component. \r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-08-01T04:06:45.000+0000", "updated": "2014-08-01T04:06:45.000+0000" }, { "id": "316637", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Corrected that, sorry ;)", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-08-01T13:05:32.000+0000", "updated": "2014-08-01T13:05:32.000+0000" }, { "id": "316645", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Tried your new test case, It works well on iOS simulator 7 for both SDK 3.3.0 and 3.2.3. Clicking button only trigger one alert.\r\nWhat kind of device did you use to reproduce this problem.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-08-01T15:02:33.000+0000", "updated": "2014-08-01T15:02:33.000+0000" }, { "id": "316735", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I'm limited in what I can do here from the beach in France ;) I think it is safe to assume I made the same error in the test case as I did in the ticket and the ticket can be closed.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-08-02T07:32:57.000+0000", "updated": "2014-08-02T07:32:57.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }