File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed 
core/src/components/tab-button Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,6 @@ export class TabButton implements ComponentInterface, AnchorInterface {
8585   */ 
8686  @Event ( )  ionTabButtonClick ! : EventEmitter < TabButtonClickEventDetail > ; 
8787
88-   @Listen ( 'ionTabBarLoaded' ,  {  target : 'window'  } ) 
89-   onTabBarLoaded ( ev : Event )  { 
90-     // Only respond to events from our direct parent tab-bar 
91-     const  parent  =  this . el . parentElement ; 
92-     if  ( parent  &&  parent . tagName  ===  'ION-TAB-BAR'  &&  ev . target  ===  parent )  { 
93-       this . syncWithTabBar ( ) ; 
94-     } 
95-   } 
96- 
9788  @Listen ( 'ionTabBarChanged' ,  {  target : 'window'  } ) 
9889  onTabBarChanged ( ev : CustomEvent < TabBarChangedEventDetail > )  { 
9990    const  dispatchedFrom  =  ev . target  as  HTMLElement ; 
@@ -114,17 +105,6 @@ export class TabButton implements ComponentInterface, AnchorInterface {
114105    } 
115106  } 
116107
117-   private  syncWithTabBar ( )  { 
118-     const  tabBar  =  this . el . parentElement  as  HTMLIonTabBarElement  |  null ; 
119-     if  ( tabBar  &&  tabBar . tagName  ===  'ION-TAB-BAR' )  { 
120-       // Check both the property and attribute to handle all initialization scenarios 
121-       const  selectedTab  =  tabBar . selectedTab  ??  tabBar . getAttribute ( 'selected-tab' ) ; 
122-       if  ( selectedTab  !==  null  &&  selectedTab  !==  undefined )  { 
123-         this . selected  =  this . tab  ===  selectedTab ; 
124-       } 
125-     } 
126-   } 
127- 
128108  private  selectTab ( ev : Event  |  KeyboardEvent )  { 
129109    if  ( this . tab  !==  undefined )  { 
130110      if  ( ! this . disabled )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments