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

rc-switch

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-switch - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

10

es/Switch.js

@@ -81,3 +81,3 @@ import _extends from 'babel-runtime/helpers/extends';

tabIndex: switchTabIndex,
ref: 'node',
ref: this.saveNode,
onKeyDown: this.handleKeyDown,

@@ -124,4 +124,4 @@ onClick: this.toggle,

this.handleMouseUp = function (e) {
if (_this2.refs.node) {
_this2.refs.node.blur();
if (_this2.node) {
_this2.node.blur();
}

@@ -132,2 +132,6 @@ if (_this2.props.onMouseUp) {

};
this.saveNode = function (node) {
_this2.node = node;
};
};

@@ -134,0 +138,0 @@

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

tabIndex: switchTabIndex,
ref: 'node',
ref: this.saveNode,
onKeyDown: this.handleKeyDown,

@@ -158,4 +158,4 @@ onClick: this.toggle,

this.handleMouseUp = function (e) {
if (_this2.refs.node) {
_this2.refs.node.blur();
if (_this2.node) {
_this2.node.blur();
}

@@ -166,2 +166,6 @@ if (_this2.props.onMouseUp) {

};
this.saveNode = function (node) {
_this2.node = node;
};
};

@@ -168,0 +172,0 @@

{
"name": "rc-switch",
"version": "1.5.2",
"version": "1.5.3",
"description": "switch 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