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

cf-component-checkbox

Package Overview
Dependencies
Maintainers
11
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-component-checkbox - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

7

lib/Checkbox.js

@@ -24,7 +24,2 @@ 'use strict';

_createClass(Checkbox, [{
key: 'handleChange',
value: function handleChange(e) {
this.props.onChange(e.target.checked);
}
}, {
key: 'render',

@@ -47,3 +42,3 @@ value: function render() {

checked: this.props.checked,
onChange: this.handleChange }),
onChange: this.props.onChange }),
this.props.label && React.createElement(

@@ -50,0 +45,0 @@ 'span',

4

lib/CheckboxGroup.js

@@ -61,4 +61,4 @@ 'use strict';

checked: includes(_this3.props.values, option.value),
onChange: function onChange(val) {
return _this3.handleChange(option.value, val);
onChange: function onChange(e) {
return _this3.handleChange(option.value, e.target.checked);
} });

@@ -65,0 +65,0 @@ })

{
"name": "cf-component-checkbox",
"description": "CloudFlare Checkbox Component",
"version": "2.0.0",
"version": "3.0.0",
"main": "lib/index.js",

@@ -17,4 +17,6 @@ "author": "James Kyle <jkyle@cloudflare.com>",

"assert-equal-jsx": "^1.0.0",
"enzyme": "^2.3.0",
"react-addons-test-utils": "^15.0.0-0",
"react-dom": "^15.0.0-0"
}
}
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