From b2205c118414f7f26815eb32a6b2d45e1f23c6a9 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Thu, 16 Nov 2017 21:00:46 -0800 Subject: [PATCH] deselect in component --- src/components/graph/graph.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/graph/graph.js b/src/components/graph/graph.js index dfff3f82..2dd92d80 100644 --- a/src/components/graph/graph.js +++ b/src/components/graph/graph.js @@ -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? */