mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 23:50:02 +00:00
Allow removal of properties.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user