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

rc-tabs

Package Overview
Dependencies
Maintainers
3
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.12 to 7.0.13

19

lib/utils.js

@@ -23,7 +23,3 @@ 'use strict';

function toArray(children) {
if (Array.isArray(children)) {
return children.filter(function (c) {
return !!c;
});
}
// allow [c,[a,b]]
var c = [];

@@ -39,10 +35,9 @@ _react2["default"].Children.forEach(children, function (child) {

function getActiveIndex(children, activeKey) {
var activeIndex = -1;
_react2["default"].Children.forEach(children, function (child, index) {
if (child.key === activeKey) {
activeIndex = index;
var c = toArray(children);
for (var i = 0; i < c.length; i++) {
if (c[i].key === activeKey) {
return i;
}
});
return activeIndex;
}
return -1;
}

@@ -49,0 +44,0 @@

{
"name": "rc-tabs",
"version": "7.0.12",
"version": "7.0.13",
"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