Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12438

The value if Titanium.UI.Tab.active is incorrect after switching tabs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MobileWeb
    • Labels:
    • Environment:

      MS Windows, Titanium Studio 3.0.0.201211202053, SDK 3.0.0, Chrome simulator or a Webkit mobile browser

    • Story Points:
      0
    • Sprint:
      2018 Sprint 16 SDK

      Description

      Steps to reproduce:

      1. Create a tab group with two tabs.

      2. Programmatically set the "active" property to true, or call setActive(true), for the non-active tab (the second tab).

      3. 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.

      Note:

      • Titanium.UI.Tab.active actually changed the tab (the other tab appeared).
      • There are no such problem after clicking on the tab manually.
      • Checking the properties asynchronously (after a timeout, in a callback) does not resolve the problem.

      Example:

      var tabGroup = Titanium.UI.createTabGroup();
       
      var redWindow = Titanium.UI.createWindow({ backgroundColor: "red"});
      var firstTabInTG = Ti.UI.createTab({
          title: "Title-1",
          window: redWindow
      });
      tabGroup.addTab(firstTabInTG);
       
      var greenWindow = Titanium.UI.createWindow({ backgroundColor: "green"});
      var secondTabInTG = Ti.UI.createTab({
          title: "Title-2",
          window: greenWindow
      });
      tabGroup.addTab(secondTabInTG);
       
      tabGroup.open();
       
      secondTabInTG.active = true;
      firstTabInTG.active; // true - should be false
      secondTabInTG.active; // false - should be true

        Attachments

          Activity

            People

            • Assignee:
              aleard Alan Leard
              Reporter:
              ypidstryhach_gl Yaroslav Pidstryhach
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15437
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration