Fix CheckboxGroup value, close #1101

This commit is contained in:
afc163 2016-03-01 17:01:03 +08:00
parent e1a5c20d26
commit 7ce38e39b6

View File

@ -34,7 +34,7 @@ export default React.createClass({
},
toggleOption(option) {
const optionIndex = this.state.value.indexOf(option);
const value = this.state.value;
const value = [...this.state.value];
if (optionIndex === - 1) {
value.push(option);
} else {