Comparing version 7.0.7 to 7.0.8
@@ -48,2 +48,5 @@ 'use strict'; | ||
_react2["default"].Children.forEach(children, function (child) { | ||
if (!child) { | ||
return; | ||
} | ||
var key = child.key; | ||
@@ -50,0 +53,0 @@ var cls = activeKey === key ? prefixCls + '-tab-active' : ''; |
@@ -50,2 +50,5 @@ 'use strict'; | ||
_react2["default"].Children.forEach(children, function (child) { | ||
if (!child) { | ||
return; | ||
} | ||
var key = child.key; | ||
@@ -52,0 +55,0 @@ var active = activeKey === key; |
@@ -34,3 +34,3 @@ 'use strict'; | ||
_react2["default"].Children.forEach(props.children, function (child) { | ||
if (!activeKey && !child.props.disabled) { | ||
if (child && !activeKey && !child.props.disabled) { | ||
activeKey = child.key; | ||
@@ -119,3 +119,3 @@ } | ||
_react2["default"].Children.forEach(this.props.children, function (c) { | ||
if (!c.props.disabled) { | ||
if (c && !c.props.disabled) { | ||
if (next) { | ||
@@ -122,0 +122,0 @@ children.push(c); |
@@ -24,7 +24,11 @@ 'use strict'; | ||
if (Array.isArray(children)) { | ||
return children; | ||
return children.filter(function (c) { | ||
return !!c; | ||
}); | ||
} | ||
var c = []; | ||
_react2["default"].Children.forEach(children, function (child) { | ||
return c.push(child); | ||
if (child) { | ||
c.push(child); | ||
} | ||
}); | ||
@@ -31,0 +35,0 @@ return c; |
{ | ||
"name": "rc-tabs", | ||
"version": "7.0.7", | ||
"version": "7.0.8", | ||
"description": "tabs ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
56582
1511