[AC-2385] iOS & Android: Button disabled does not bubble event to parent
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-04-02T23:27:14.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | bubble, button, events, parent |
Reporter | Jan Helleman |
Assignee | Mauro Parra-Miranda |
Created | 2012-10-19T22:59:39.000+0000 |
Updated | 2016-03-08T07:41:25.000+0000 |
Description
*Problem description*
Using a "enabled: false" button does not bubble it's events to it's parent.
As 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.
*Test case*
var window = Ti.UI.createWindow({backgroundColor:'white'});
var btn1 = Ti.UI.createButton({title:'test1'});
var btn2 = Ti.UI.createButton({title:'test2', enabled: false, top: 100});
window.add(btn1);
window.add(btn2);
window.addEventListener('swipe', function(e)
{
Ti.API.info('swiped window');
});
window.addEventListener('click', function(e)
{
Ti.API.info('clicked window');
});
window.open();
This is handle by the native SDK
Invalid issue.