{ "id": "84038", "key": "AC-2761", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-12-23T04:41:33.000+0000", "created": "2011-12-19T07:35:38.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:47:40.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": "h2. Problem\r\n\r\nThe click event in a tab element of a tabGroup is not fired in either Titanium versions listed above\r\n\r\nNote that this also did not work on Android 1.7.5, but the issue has been fixed in Android 1.8.0.1\r\n\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.UI.setBackgroundColor('#000');\r\n\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Ti.UI.createTab({\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Ti.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 1',\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Ti.UI.createTab({\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 2',\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\ntabGroup.open();\r\n\r\ntab1.addEventListener('click', function(e) {\r\n Ti.API.info(\"tab1 clicked.\");\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: UI - tabGroup tab click event not fired", "creator": { "name": "djfabrix", "key": "djfabrix", "displayName": "Fabrizio Riccardo", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "djfabrix", "key": "djfabrix", "displayName": "Fabrizio Riccardo", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium Mobile official releases 1.7.5, 1.8.0.1\r\n* iOS 4.3.2\r\n* iPhone simulator\r\n* MacOSX 10.6.8 Snow Leopard", "comment": { "comments": [ { "id": "177108", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Fabrizio\r\n\r\nThank 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.\r\n\r\nIncidentally, 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.\r\n\r\nOther 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.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-23T04:34:24.000+0000", "updated": "2011-12-23T04:34:24.000+0000" }, { "id": "281024", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:30:01.000+0000", "updated": "2013-11-24T22:30:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }