{ "id": "98045", "key": "TIMOB-10154", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-06-07T05:11:53.000+0000", "created": "2012-07-26T03:04:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios07" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "56617", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "171798", "key": "TIDOC-3202", "fields": { "summary": "Update Titanium.UI.TabGroup with a note from TIMOB-10154", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": null, "updated": "2018-08-06T17:36:58.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "TabGroup click event is not fired.\r\nThis is not regression. This issue occurs from 2.0.1.\r\n\r\nSteps to Reproduce:\r\n1. Create an app using the code below.\r\n2. Launch app. and click on TabGroup.\r\n\r\nExpected Result:\r\nTabGroup click event should be fired and should be reflected on the console.\r\n\r\nActual:\r\nTabGroup click event is not fired.\r\n\r\n{code}\r\n\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n \r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n title:'Tab 1',\r\n window:win1\r\n});\r\n \r\nvar label1 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 1'\r\n});\r\n \r\nwin1.add(label1);\r\n \r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n title:'Tab 2',\r\n window:win2\r\n});\r\n \r\nvar label2 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 2'\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\n \r\ntabGroup.addEventListener(\"click\", function(){\r\n Ti.API.info(\"tabGroup click event fired!\");\r\n});\r\n \r\n{code}", "attachment": [ { "id": "65115", "filename": "app.js", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2018-05-03T15:09:18.000+0000", "size": 2995, "mimeType": "application/javascript" } ], "flagged": false, "summary": " iOS : Events not getting fired for tabs in tab group", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK:2.1.1.v20120723131610\r\nSTUDIO:2.1.1.201207171343\r\nDevices:iPhone 3GS, iPhone simulator\r\nOS: Mac OSX 10.7.3", "closedSprints": [ { "id": 1034, "state": "closed", "name": "2018 Sprint 10 SDK", "startDate": "2018-05-07T00:03:21.636Z", "endDate": "2018-05-21T00:03:00.000Z", "completeDate": "2018-05-20T20:54:58.928Z", "originBoardId": 114 }, { "id": 1035, "state": "closed", "name": "2018 Sprint 11 SDK", "startDate": "2018-05-20T20:57:43.542Z", "endDate": "2018-06-03T20:57:00.000Z", "completeDate": "2018-06-04T15:13:14.425Z", "originBoardId": 114 }, { "id": 1039, "state": "closed", "name": "2018 Sprint 12 SDK", "startDate": "2018-06-03T15:22:23.401Z", "endDate": "2018-06-17T15:22:00.000Z", "completeDate": "2018-06-18T20:45:36.363Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "244267", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T08:52:13.000+0000", "updated": "2013-03-27T08:52:13.000+0000" }, { "id": "437895", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ewieber] can you please try and reproduce with GA components?", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-23T20:34:52.000+0000", "updated": "2018-05-23T20:34:52.000+0000" }, { "id": "438005", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue using GA components, however it appears to be a known and addressed issue, based on the following chain of older tickets: TIMOB-6499, TIMOB-18099, TIMOB-19759. In short, this could be considered a non-issue.\r\n\r\nIt may be worth having [~hknoechel] take a quick look at this issue to see if he feels more work can/should be done here, but other methods are provided in the previous tickets.\r\n\r\nI would recommend continuing to use the selected and unselected events for the tab or, better yet, using the focus and blur events of the tabgroup:\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TabGroup-event-focus\r\nFocus should be able to give them the previously active tab, currently active tab, and its index.\r\nIf one of these events will not work for them, could they please provide the case where they do not and another event would be required?", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-05-30T05:19:51.000+0000", "updated": "2018-05-31T14:54:37.000+0000" }, { "id": "438185", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving this ticket as {{Invalid}} while agreeing with the previous comment from [~ewieber]. Tabs are not supposed to fire {{click}}, {{singletap}} and other UI-related events, since they are no Ti.UI.View subclass. \r\n\r\nHowever, the docs should be updated to indicate that, so we should follow-up on that with a TIDOC ticket (cc [~bimmel]).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-07T05:11:53.000+0000", "updated": "2018-06-07T05:11:53.000+0000" }, { "id": "439896", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:36:58.000+0000", "updated": "2018-08-06T17:36:58.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }