Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-tabs

Package Overview
Dependencies
Maintainers
2
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tabs - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

13

lib/Tabs.js

@@ -5,2 +5,3 @@ /** @jsx React.DOM */

var keyCode = require('./keyCode');
var rcUtil = require('rc-util');

@@ -54,3 +55,3 @@ var TabPane = React.createClass({

React.Children.forEach(this.props.children, function (child) {
if (!activeKey){
if (!activeKey) {
activeKey = child.key;

@@ -110,9 +111,13 @@ }

var children = self.props.children;
var newChildren = [];
React.Children.forEach(children, function (child) {
child.props.active = activeKey === child.key;
child.props.rootPrefixCls = self.state.prefixCls;
newChildren.push(rcUtil.cloneWithProps(child, {
active: activeKey === child.key,
key: child.key,
rootPrefixCls: self.state.prefixCls
}));
});
return children;
return newChildren;
},

@@ -119,0 +124,0 @@

{
"name": "rc-tabs",
"version": "2.0.3",
"version": "2.0.4",
"description": "tabs ui component for react",

@@ -26,3 +26,4 @@ "keywords": [

"dependencies": {
"react": "*"
"react": "*",
"rc-util": "1.x"
}

@@ -45,2 +46,5 @@ },

},
"dependencies": {
"rc-util": "1.x"
},
"devDependencies": {

@@ -47,0 +51,0 @@ "css-loader": "^0.9.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc