{ "id": "107732", "key": "TIMOB-12438", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-05-01T22:34:28.000+0000", "created": "2013-01-11T06:30:31.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "linvalid" ], "versions": [], "issuelinks": [], "assignee": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-02T22:20:05.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Steps to reproduce:\r\n\r\n1. Create a tab group with two tabs.\r\n\r\n2. Programmatically set the \"active\" property to true, or call setActive(true), for the non-active tab (the second tab).\r\n\r\n3. Check the \"active\" property of the tab. The first tab still returns true but should return false; the second tab returns false but should return true.\r\n\r\nNote: \r\n\r\n- Titanium.UI.Tab.active actually changed the tab (the other tab appeared). \r\n- There are no such problem after clicking on the tab manually.\r\n- Checking the properties asynchronously (after a timeout, in a callback) does not resolve the problem.\r\n\r\nExample:\r\n{code}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar redWindow = Titanium.UI.createWindow({ backgroundColor: \"red\"});\r\nvar firstTabInTG = Ti.UI.createTab({\r\n title: \"Title-1\",\r\n window: redWindow\r\n});\r\ntabGroup.addTab(firstTabInTG);\r\n\r\nvar greenWindow = Titanium.UI.createWindow({ backgroundColor: \"green\"});\r\nvar secondTabInTG = Ti.UI.createTab({\r\n title: \"Title-2\",\r\n window: greenWindow\r\n});\r\ntabGroup.addTab(secondTabInTG);\r\n\r\ntabGroup.open();\r\n\r\nsecondTabInTG.active = true;\r\nfirstTabInTG.active; // true - should be false\r\nsecondTabInTG.active; // false - should be true{code}", "attachment": [], "flagged": false, "summary": "The value if Titanium.UI.Tab.active is incorrect after switching tabs", "creator": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "subtasks": [], "reporter": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "environment": "MS Windows, Titanium Studio 3.0.0.201211202053, SDK 3.0.0, Chrome simulator or a Webkit mobile browser", "closedSprints": [ { "id": 1058, "state": "closed", "name": "2018 Sprint 16 SDK", "startDate": "2018-07-29T22:26:06.486Z", "endDate": "2018-08-12T22:26:00.000Z", "completeDate": "2018-08-13T17:38:16.757Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "418501", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as \"Won't Fix\" as MobileWeb is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-01T22:34:28.000+0000", "updated": "2017-05-01T22:34:28.000+0000" }, { "id": "439737", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing old \"Won't fix\" tickets. If you disagree, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-02T22:20:05.000+0000", "updated": "2018-08-02T22:20:05.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }