From 79b2a0e7cb54dae385bc62a95f1090142e1031b6 Mon Sep 17 00:00:00 2001 From: Evgeny Kochetkov Date: Wed, 28 Feb 2018 18:29:14 +0300 Subject: [PATCH] =?UTF-8?q?tweak(xod-client):=20don=E2=80=99t=20show=20too?= =?UTF-8?q?ltip=20for=20dragged=20node?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/xod-client/src/project/components/Node.jsx | 6 +++--- packages/xod-client/src/tooltip/components/Tooltip.jsx | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/xod-client/src/project/components/Node.jsx b/packages/xod-client/src/project/components/Node.jsx index 76085c96..8c108032 100644 --- a/packages/xod-client/src/project/components/Node.jsx +++ b/packages/xod-client/src/project/components/Node.jsx @@ -72,18 +72,18 @@ class Node extends React.Component { position, size, type, + isDragged, } = this.props; const pinsArr = R.values(pins); const cls = classNames('Node', { 'is-selected': this.props.isSelected, - 'is-dragged': this.props.isDragged, + 'is-dragged': isDragged, 'is-ghost': this.props.isGhost, 'is-errored': (this.props.errors.length > 0), }); - const svgStyle = { overflow: 'visible', opacity: this.props.hidden ? 0 : 1, // setting visibility is breaking masks @@ -102,7 +102,7 @@ class Node extends React.Component { return ( (