react-checkbox-group
Advanced tools
Comparing version
{ | ||
"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 | ||
[](https://travis-ci.org/ziad-saab/react-checkbox-group) | ||
This is your average checkbox group: | ||
@@ -5,0 +7,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9
12.5%124
1.64%0
-100%14054
-0.95%10
42.86%303
-4.42%