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.3.3 to 1.4.0

14

lib/Switch.js

@@ -61,2 +61,14 @@ 'use strict';

},
handleKeyDown: function handleKeyDown(e) {
if (e.keyCode === 37) {
this.setState({
checked: false
});
}
if (e.keyCode === 39) {
this.setState({
checked: true
});
}
},
render: function render() {

@@ -78,2 +90,4 @@ var _classNames;

{ className: switchClassName,
tabIndex: '0',
onKeyDown: this.handleKeyDown,
onClick: disabled ? noop : this.toggle,

@@ -80,0 +94,0 @@ style: style },

2

package.json
{
"name": "rc-switch",
"version": "1.3.3",
"version": "1.4.0",
"description": "switch 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