Comparing version 3.2.0 to 3.3.0
@@ -54,3 +54,3 @@ /** @jsx React.DOM */ | ||
activeKey = props.activeKey; | ||
} else { | ||
} else if (props.defaultActiveFirst) { | ||
React.Children.forEach(props.children, (child) => { | ||
@@ -82,3 +82,3 @@ if (!activeKey) { | ||
var length = children.length; | ||
var ret; | ||
var ret = length && children[0].key; | ||
children.forEach((child, i) => { | ||
@@ -103,3 +103,3 @@ if (child.key === activeKey) { | ||
var length = children.length; | ||
var ret; | ||
var ret = length && children[length - 1].key; | ||
children.forEach((child, i)=> { | ||
@@ -216,3 +216,4 @@ if (child.key === activeKey) { | ||
Tabs.defaultProps = { | ||
prefixCls: 'rc-tabs' | ||
prefixCls: 'rc-tabs', | ||
defaultActiveFirst: true | ||
}; | ||
@@ -219,0 +220,0 @@ |
{ | ||
"name": "rc-tabs", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "tabs ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
19784
18
343