(props)
| 11 | |
| 12 | class CheckboxGroup extends Component { |
| 13 | constructor (props) { |
| 14 | super(props); |
| 15 | |
| 16 | let values = toArray(props.value, props.sep); |
| 17 | this.state = { |
| 18 | value: values, |
| 19 | data: this.formatData(props.data, values) |
| 20 | }; |
| 21 | this.handleChange = this.handleChange.bind(this); |
| 22 | } |
| 23 | |
| 24 | componentWillReceiveProps (nextProps) { |
| 25 | if (!deepEqual(nextProps.value, this.props.value)) { |
nothing calls this directly
no test coverage detected