Problem
The click event in a tab element of a tabGroup is not fired in either Titanium versions listed above
Note that this also did not work on Android 1.7.5, but the issue has been fixed in Android 1.8.0.1
Test case
Ti.UI.setBackgroundColor('#000');
var tabGroup = Ti.UI.createTabGroup();
var win1 = Ti.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Ti.UI.createTab({
title:'Tab 1',
window:win1
});
var label1 = Ti.UI.createLabel({
color:'#999',
text:'I am Window 1',
textAlign:'center',
width:'auto'
});
win1.add(label1);
var win2 = Ti.UI.createWindow({
title:'Tab 2',
backgroundColor:'#fff'
});
var tab2 = Ti.UI.createTab({
title:'Tab 2',
window:win2
});
var label2 = Ti.UI.createLabel({
color:'#999',
text:'I am Window 2',
textAlign:'center',
width:'auto'
});
win2.add(label2);
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.open();
tab1.addEventListener('click', function(e) {
Ti.API.info("tab1 clicked.");
});
Fabrizio Thank you for raising this issue, which I have tested and confirmed that it is indeed a parity bug. See TIMOB-6499 for the existing ticket. Incidentally, before I realised there was an existing ticket, be aware that I had to do quite a lot to this ticket to make it acceptable by our engineering team. Please note the improvements I've made, and be certain to read the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) and [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase) (the test case is now vastly simplified) before raising your next one. Other than these points, great work in discovering this - I am surprised that no-one else in our community spotted it before. Watch the other ticket if its resolution is important to your project. Cheers
DUP issue.