initial commit (#16366)
This commit is contained in:
parent
a9f502b67b
commit
3faf653e5f
|
|
@ -80,8 +80,9 @@ class CollectionControl extends React.Component {
|
|||
}
|
||||
|
||||
onChange(i, value) {
|
||||
Object.assign(this.props.value[i], value);
|
||||
this.props.onChange(this.props.value);
|
||||
const newValue = [...this.props.value];
|
||||
newValue[i] = { ...this.props.value[i], ...value };
|
||||
this.props.onChange(newValue);
|
||||
}
|
||||
|
||||
onAdd() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue