Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2385] iOS & Android: Button disabled does not bubble event to parent

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-04-02T23:27:14.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsbubble, button, events, parent
ReporterJan Helleman
AssigneeMauro Parra-Miranda
Created2012-10-19T22:59:39.000+0000
Updated2016-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();

Comments

  1. Pedro Enrique 2013-04-02

    This is handle by the native SDK
  2. Mauro Parra-Miranda 2013-11-24

    Invalid issue.

JSON Source