Comparing version 12.7.0 to 12.7.1
@@ -46,3 +46,3 @@ import { useMemo } from 'react'; | ||
} | ||
return [startIndex, endIndex]; | ||
return startIndex >= endIndex ? [0, 0] : [startIndex, endIndex]; | ||
}, [tabOffsets, visibleTabContentValue, tabContentSizeValue, addNodeSizeValue, operationNodeSizeValue, transformSize, tabPosition, tabs.map(function (tab) { | ||
@@ -49,0 +49,0 @@ return tab.key; |
@@ -52,3 +52,3 @@ "use strict"; | ||
} | ||
return [startIndex, endIndex]; | ||
return startIndex >= endIndex ? [0, 0] : [startIndex, endIndex]; | ||
}, [tabOffsets, visibleTabContentValue, tabContentSizeValue, addNodeSizeValue, operationNodeSizeValue, transformSize, tabPosition, tabs.map(function (tab) { | ||
@@ -55,0 +55,0 @@ return tab.key; |
{ | ||
"name": "rc-tabs", | ||
"version": "12.7.0", | ||
"version": "12.7.1", | ||
"description": "tabs ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154802