Remove logging.

This commit is contained in:
orangemug 2018-04-10 12:47:00 +01:00
parent 0bd62985b9
commit 6138257a89
2 changed files with 0 additions and 4 deletions

View file

@ -19,7 +19,6 @@ class StringInput extends React.Component {
}
componentWillReceiveProps(nextProps) {
console.log("@@ STRING componentWillReceiveProps", JSON.stringify(nextProps))
this.setState({ value: nextProps.value || '' })
}
@ -48,13 +47,11 @@ class StringInput extends React.Component {
value: this.state.value,
placeholder: this.props.default,
onChange: e => {
console.log("@@ STRING CHANGE", JSON.stringify(e.target.value));
this.setState({
value: e.target.value
})
},
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)
}
});

View file

@ -125,7 +125,6 @@ class AddModal extends React.Component {
value={this.state.id}
wdKey="add-layer.layer-id"
onChange={v => {
console.log("@@ upper_id_change", JSON.stringify(v))
this.setState({ id: v })
}}
/>