Merge pull request #1998 from weaveworks/1997-canvas-click

Fix details panel not closing on canvas click
This commit is contained in:
Jordan Pellizzari
2016-11-09 09:26:29 -08:00
committed by GitHub

View File

@@ -236,7 +236,7 @@ class NodesChart extends React.Component {
}
handleMouseClick() {
if (!this.isZooming) {
if (!this.isZooming || this.props.selectedNodeId) {
this.props.clickBackground();
} else {
this.isZooming = false;