{ "id": "103689", "key": "AC-2385", "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": "2013-04-02T23:27:14.000+0000", "created": "2012-10-19T22:59:39.000+0000", "labels": [ "bubble", "button", "events", "parent" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:25.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": "*Problem description*\r\nUsing a \"enabled: false\" button does not bubble it's events to it's parent.\r\n\r\nAs far as I would think, the btn shouldn't invoke it's own events but should invoke those of it's parent. In this case, a swipe in a tableViewRow or on a window.\r\n\r\n*Test case*\r\n{code}\r\nvar window = Ti.UI.createWindow({backgroundColor:'white'});\r\n\r\nvar btn1 = Ti.UI.createButton({title:'test1'});\r\nvar btn2 = Ti.UI.createButton({title:'test2', enabled: false, top: 100});\r\n\r\nwindow.add(btn1);\r\nwindow.add(btn2);\r\n\r\nwindow.addEventListener('swipe', function(e)\r\n{\r\n\tTi.API.info('swiped window');\r\n});\r\n\r\nwindow.addEventListener('click', function(e)\r\n{\r\n\tTi.API.info('clicked window');\r\n});\r\n\r\nwindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS & Android: Button disabled does not bubble event to parent", "creator": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS, Android 2.2, OSX, Ti SDK 3.0.0.v20121019140116", "comment": { "comments": [ { "id": "245347", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is handle by the native SDK", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T23:27:14.000+0000", "updated": "2013-04-02T23:27:14.000+0000" }, { "id": "280959", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Invalid issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:18:22.000+0000", "updated": "2013-11-24T22:18:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }