Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4620] iOS: Button inside a view inside a table view row does not fire click event

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-11-05T15:26:55.000+0000
Affected Version/sRelease 1.7.1, Release 1.7.2
Fix Version/sSprint 2011-28, Release 1.8.0
ComponentsiOS
Labelsn/a
ReporterPedro Enrique
AssigneeStephen Tramer
Created2011-07-07T15:34:58.000+0000
Updated2014-06-19T12:46:40.000+0000

Description

Problem

Creating a button and placing it inside a view that's inside a table view row, does not answer to the "click" event

Example

var win = Ti.UI.createWindow();

var view = Ti.UI.createView({
	backgroundColor:'#eee',
	width:200
});
var btn = Ti.UI.createButton({title:'here',width:100,height:30});
var row = Ti.UI.createTableViewRow({
	backgroundColor:'#ccc'
});

view.add(btn);
row.add(view);

var table = Ti.UI.createTableView({
	data:[row]
});

win.add(table);

win.open();

btn.addEventListener('click', function(){
	alert('Clicked');
});

Helpdesk Ticket looking for this

http://support.appcelerator.com/tickets/APP-124753/homepage

Comments

  1. Natalie Huynh 2011-08-25

    Tested with 1.8.0.v20110819142548 iPhone 4.3.4 iPad2 4.3.2 Motorola Xoom 3.2 Nexus One 2.2.2
  2. Don Thorp 2011-11-05

    Standardizing summary and labels.

JSON Source