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

iOS: If TabGroup is inside a TableView, Focus and Blur events are not called when switching between tabs more than few times

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Duplicate
    • Affects Version/s: Release 3.5.0
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Titanium SDK: 3.5.0.v20141208122514
      Appc-Studio: 3.4.1 GA
      Titanium CLI: 3.4.1 GA
      Alloy : 1.5.1 GA
      Xcode : 6.1
      OS: OSX 10.10.1
      Device : iPhone 6plus (iOS 8.1)

      Description

      This is not a regression. Seen in 3.4.1 SDK too.

      If TabGroup is inside a TableView, Focus and Blur events are not firing after few times (more than 3 times) switching between tabs.
      It works fine if it's not inside a TableView

      Steps To Reproduce

      1. Create a classic app with following code

      Titanium.UI.setBackgroundColor('#000');
       
      var tbl_data = [
          {title:'Row 1'},
          {title:'Row 2'},
          {title:'Row 3'}
      ];
       
      var table = Titanium.UI.createTableView({
          data:tbl_data
      });
       
      table.addEventListener('click', function(event) {
      	Titanium.UI.setBackgroundColor('#000');
       
      var tabGroup = Titanium.UI.createTabGroup();
       
      	var win1 = Titanium.UI.createWindow({  
          	title:'Tab 1',
          	backgroundColor:'#fff'
      	});
      	var tab1 = Titanium.UI.createTab({  
          	icon:'KS_nav_views.png',
          	active_icon:'KS_nav_ui.png',
          	inactive_icon:'KS_nav_views.png',
          	title:'Tab 1',
          	window:win1
      	});
       
      	tab1.addEventListener('focus',function(){
          	tab1.setIcon(tab1.active_icon);
      	});
       
      	tab1.addEventListener('blur',function(){
          	tab1.setIcon(tab1.inactive_icon);
      	});
       
      	var win2 = Titanium.UI.createWindow({  
          	title:'Tab 2',
          	backgroundColor:'#fff'
      	});
      	var tab2 = Titanium.UI.createTab({  
          	icon:'KS_nav_ui.png',
          	title:'Tab 2',
          	window:win2
      	});
       
      	tabGroup.addTab(tab1);  
      	tabGroup.addTab(tab2);  
       
      	tabGroup.open();
      });
       
      table.setData(tbl_data);
      var win = Ti.UI.createWindow();
      win.add(table);
      win.open();
      

      2. Run the app
      3. Switch between tabs few times (more than 4 or 5 times)

      Actual Result

      Tab.active_icon property is failing to show after few times of switching

      Expected Result

      active_icon should show whenever tab is active

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                kvelummaylum Kajenthiran Velummaylum
                Tester:
                Kajenthiran Velummaylum
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration