File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed 
packages/mui-material/src/Tabs Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -420,14 +420,9 @@ const Tabs = React.forwardRef(function Tabs(inProps, ref) {
420420      [ size ] : tabMeta  ? tabMeta [ size ]  : 0 , 
421421    } ; 
422422
423-     if  ( 
424-       ! ( 
425-         typeof  indicatorStyle [ startIndicator ]  ===  'number'  && 
426-         ! Number . isNaN ( indicatorStyle [ startIndicator ] )  && 
427-         typeof  indicatorStyle [ size ]  ===  'number'  && 
428-         ! Number . isNaN ( indicatorStyle [ size ] ) 
429-       ) 
430-     )  { 
423+     // IE11 support, replace with Number.isNaN 
424+     // eslint-disable-next-line no-restricted-globals 
425+     if  ( isNaN ( indicatorStyle [ startIndicator ] )  ||  isNaN ( indicatorStyle [ size ] ) )  { 
431426      setIndicatorStyle ( newIndicatorStyle ) ; 
432427    }  else  { 
433428      const  dStart  =  Math . abs ( indicatorStyle [ startIndicator ]  -  newIndicatorStyle [ startIndicator ] ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments