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 3.2.0 to 3.3.0

examples/defaultActiveFirst.html

9

lib/Tabs.js

@@ -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

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