fix but failed

This commit is contained in:
Shin'ya Ueoka 2018-06-28 20:44:57 +09:00
parent 03cf265eff
commit e2fb33bdc5
20 changed files with 74 additions and 98 deletions

View file

@ -44,7 +44,7 @@ class PropertiesForm extends Component {
}
let name = e.target.name;
let next = Object.assign({}, this.props.value);
let next = { ...this.props.value };
if (e.target.type.toLowerCase() === 'checkbox') {
next[name] = e.target.checked;
} else if (e.target.type.toLowerCase() === 'number') {