{ "id": "141377", "key": "TIMOB-18171", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-12-10T07:19:34.000+0000", "created": "2014-12-10T07:07:20.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "43964", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "141276", "key": "TIMOB-18155", "fields": { "summary": "iOS: Tab doesn't fire FOCUS event when switching while TabGroup is inside a TableView", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-10T07:19:34.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": "h6. This is not a regression. Seen in 3.4.1 SDK too.\r\n\r\nIf TabGroup is inside a TableView, Focus and Blur events are not firing after few times (more than 3 times) switching between tabs. \r\nIt works fine if it's not inside a TableView\r\n\r\nh5. Steps To Reproduce\r\n1. Create a classic app with following code\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar tbl_data = [\r\n {title:'Row 1'},\r\n {title:'Row 2'},\r\n {title:'Row 3'}\r\n];\r\n \r\nvar table = Titanium.UI.createTableView({\r\n data:tbl_data\r\n});\r\n \r\ntable.addEventListener('click', function(event) {\r\n\tTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n \r\n\tvar win1 = Titanium.UI.createWindow({ \r\n \ttitle:'Tab 1',\r\n \tbackgroundColor:'#fff'\r\n\t});\r\n\tvar tab1 = Titanium.UI.createTab({ \r\n \ticon:'KS_nav_views.png',\r\n \tactive_icon:'KS_nav_ui.png',\r\n \tinactive_icon:'KS_nav_views.png',\r\n \ttitle:'Tab 1',\r\n \twindow:win1\r\n\t});\r\n \r\n\ttab1.addEventListener('focus',function(){\r\n \ttab1.setIcon(tab1.active_icon);\r\n\t});\r\n \r\n\ttab1.addEventListener('blur',function(){\r\n \ttab1.setIcon(tab1.inactive_icon);\r\n\t});\r\n \r\n\tvar win2 = Titanium.UI.createWindow({ \r\n \ttitle:'Tab 2',\r\n \tbackgroundColor:'#fff'\r\n\t});\r\n\tvar tab2 = Titanium.UI.createTab({ \r\n \ticon:'KS_nav_ui.png',\r\n \ttitle:'Tab 2',\r\n \twindow:win2\r\n\t});\r\n\r\n\ttabGroup.addTab(tab1); \r\n\ttabGroup.addTab(tab2); \r\n \r\n\ttabGroup.open();\r\n});\r\n \r\ntable.setData(tbl_data);\r\nvar win = Ti.UI.createWindow();\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n2. Run the app\r\n3. Switch between tabs few times (more than 4 or 5 times)\r\n\r\nh5. Actual Result\r\nTab.active_icon property is failing to show after few times of switching\r\n\r\nh5. Expected Result\r\nactive_icon should show whenever tab is active", "attachment": [], "flagged": false, "summary": "iOS: If TabGroup is inside a TableView, Focus and Blur events are not called when switching between tabs more than few times", "creator": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Titanium SDK: 3.5.0.v20141208122514\r\nAppc-Studio: 3.4.1 GA\r\nTitanium CLI: 3.4.1 GA\r\nAlloy : 1.5.1 GA\r\nXcode : 6.1\r\nOS: OSX 10.10.1\r\nDevice : iPhone 6plus (iOS 8.1)", "comment": { "comments": [ { "id": "335794", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "This is the duplicate of TIMOB-18155.\r\nFocus and Blur events are not called for tabs after few times if TabGroup is inside a TableView.", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-12-10T07:19:03.000+0000", "updated": "2014-12-10T07:19:03.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }