mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
Fix CheckboxGroup value, close #1101
This commit is contained in:
parent
e1a5c20d26
commit
7ce38e39b6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user