Skip to content

Commit 0ccc8f4

Browse files
committed
Fixes unstable behaviour on undefined transitionDuration
1 parent 49d1f41 commit 0ccc8f4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Node/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,15 @@ export default class Node extends React.Component {
7474
}
7575

7676
render() {
77-
const { nodeData, transitionDuration } = this.props;
78-
79-
// FIXME unstable when transitionDuration undefined
80-
const transform = transitionDuration && transitionDuration > 0 ?
81-
this.state.transform :
82-
this.setTransformOrientation(nodeData.x, nodeData.y);
77+
const { nodeData } = this.props;
8378

8479
return (
8580
<g
8681
id={nodeData.id}
8782
ref={(n) => { this.node = n; }}
8883
style={this.state.initialStyle}
8984
className={nodeData._children ? 'nodeBase' : 'leafNodeBase'}
90-
transform={transform}
85+
transform={this.state.transform}
9186
onClick={this.handleClick}
9287
>
9388
<text

0 commit comments

Comments
 (0)