mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 14:37:27 +00:00
Remove logging.
This commit is contained in:
@@ -19,7 +19,6 @@ class StringInput extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
console.log("@@ STRING componentWillReceiveProps", JSON.stringify(nextProps))
|
|
||||||
this.setState({ value: nextProps.value || '' })
|
this.setState({ value: nextProps.value || '' })
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,13 +47,11 @@ class StringInput extends React.Component {
|
|||||||
value: this.state.value,
|
value: this.state.value,
|
||||||
placeholder: this.props.default,
|
placeholder: this.props.default,
|
||||||
onChange: e => {
|
onChange: e => {
|
||||||
console.log("@@ STRING CHANGE", JSON.stringify(e.target.value));
|
|
||||||
this.setState({
|
this.setState({
|
||||||
value: e.target.value
|
value: e.target.value
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onBlur: () => {
|
onBlur: () => {
|
||||||
console.log("@@ STRING BLUR", JSON.stringify(this.state.value), "props:", JSON.stringify(this.props.value));
|
|
||||||
if(this.state.value!==this.props.value) this.props.onChange(this.state.value)
|
if(this.state.value!==this.props.value) this.props.onChange(this.state.value)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -125,7 +125,6 @@ class AddModal extends React.Component {
|
|||||||
value={this.state.id}
|
value={this.state.id}
|
||||||
wdKey="add-layer.layer-id"
|
wdKey="add-layer.layer-id"
|
||||||
onChange={v => {
|
onChange={v => {
|
||||||
console.log("@@ upper_id_change", JSON.stringify(v))
|
|
||||||
this.setState({ id: v })
|
this.setState({ id: v })
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user