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 7.0.7 to 7.0.8

3

lib/TabBarMixin.js

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

4

lib/Tabs.js

@@ -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": [

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