🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

react-checkbox-group

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-checkbox-group - npm Package Compare versions

Comparing version

to
1.0.1

{
"name": "react-checkbox-group",
"version": "1.0.0",
"version": "1.0.1",
"description": "Sensible checkbox groups manipulation for DOM.",

@@ -40,4 +40,7 @@ "main": "react-checkbox-group.js",

"jsdom": "^8.1.0",
"mocha": "^2.4.5",
"react": ">= 0.14.0 < 1",
"react-dom": ">= 0.14.0 < 1",
"react-addons-test-utils": "^0.14.7"
}
}

@@ -25,4 +25,3 @@ 'use strict';

return {
value: this.props.value || this.props.defaultValue || [],
firstRender: true // for defaultValue
value: this.props.value || this.props.defaultValue || []
};

@@ -39,8 +38,2 @@ },

componentDidMount: function componentDidMount() {
// TODO: this seems wrong, is there a better way??
this.setState({
firstRender: false
});
},
onCheckboxChange: function onCheckboxChange(checkboxValue, event) {

@@ -47,0 +40,0 @@ var newValue;

@@ -24,4 +24,3 @@ var React = require('react');

return {
value: this.props.value || this.props.defaultValue || [],
firstRender: true // for defaultValue
value: this.props.value || this.props.defaultValue || []
};

@@ -37,8 +36,2 @@ },

},
componentDidMount: function() {
// TODO: this seems wrong, is there a better way??
this.setState({
firstRender: false
});
},
onCheckboxChange: function(checkboxValue, event) {

@@ -45,0 +38,0 @@ var newValue;

# [React](http://facebook.github.io/react/)-checkbox-group
## Heavily inspired from https://github.com/chenglou/react-radio-group
### Heavily inspired from https://github.com/chenglou/react-radio-group
[![Build Status](https://travis-ci.org/ziad-saab/react-checkbox-group.svg?branch=master)](https://travis-ci.org/ziad-saab/react-checkbox-group)
This is your average checkbox group:

@@ -5,0 +7,0 @@