Prevent clobbering of label when bounds are set

pull/10616/head
Andrew Watkins 2017-08-02 16:11:25 -07:00
parent 442a7fdc21
commit c5ce2e4707
1 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,9 @@ class CellEditorOverlay extends Component {
const {min, max} = e.target.form
const {axes} = this.state
this.setState({axes: {...axes, y: {bounds: [min.value, max.value]}}})
this.setState({
axes: {...axes, y: {...axes.y, bounds: [min.value, max.value]}},
})
e.preventDefault()
}