@secondstaxorg/sscomp 2.1.11 → 2.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -22065,8 +22065,8 @@ const Tab = (props) => {
22065
22065
  const [tabIndex,setTabIndex] = React$1.useState(0);
22066
22066
 
22067
22067
  React$1.useEffect(()=>{
22068
- if (initialTab){
22069
- setTabIndex(initialTab);
22068
+ if (initialTab !== undefined && initialTab !== null){
22069
+ setTabIndex((initialTab < 0 || initialTab > tabs.length - 1) ? 0 : initialTab);
22070
22070
  }
22071
22071
  },[initialTab]);
22072
22072