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

rc-util

Package Overview
Dependencies
Maintainers
2
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-util - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

2

es/Dom/class.js

@@ -25,5 +25,5 @@ export function hasClass(node, className) {

var originClass = node.className;
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', '');
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', ' ');
}
}
}

@@ -29,3 +29,3 @@ function hidden(node) {

}
return hasTabIndex;
return node.isContentEditable || hasTabIndex;
}

@@ -32,0 +32,0 @@ }

@@ -33,5 +33,5 @@ 'use strict';

var originClass = node.className;
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', '');
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', ' ');
}
}
}

@@ -39,3 +39,3 @@ 'use strict';

}
return hasTabIndex;
return node.isContentEditable || hasTabIndex;
}

@@ -42,0 +42,0 @@ }

{
"name": "rc-util",
"version": "4.1.0",
"version": "4.1.1",
"description": "Common Utils For React Component",

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