Allow removal of properties.

This commit is contained in:
orangemug
2019-06-19 20:34:28 +01:00
parent c3c0c35d8a
commit 2ec6a90dc3
3 changed files with 12 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ class InputBlock extends React.Component {
onChange(e) {
const value = e.target.value
return this.props.onChange(value === "" ? null: value)
return this.props.onChange(value === "" ? undefined : value)
}
render() {