cf-component-checkbox
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -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', |
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9063
4
116