deselect in component

This commit is contained in:
Colin Megill
2017-11-16 21:00:46 -08:00
parent 976fc68b9d
commit b2205c1184
+5 -7
View File
@@ -63,13 +63,11 @@ class Graph extends React.Component {
})
}
handleBrushDeselectAction() {
// function brushended() {
// if (!d3.event.selection) {
// console.log('graph brush deselect')
// }
// }
console.log('handle deselect')
if (!d3.event.selection) {
this.props.dispatch({
type: "graph brush deselect"
})
}
}
componentWillReceiveProps(nextProps) {
/* maybe should do a check here to confirm ref exists and pass it? */