Disable root element moving
This commit is contained in:
@@ -80,6 +80,7 @@ var Node = React.createClass({
|
|||||||
<span
|
<span
|
||||||
className={ cx(styles.nodeLabel, { rootLabel: this.props.rootNode }) }
|
className={ cx(styles.nodeLabel, { rootLabel: this.props.rootNode }) }
|
||||||
onClick={() => {}}
|
onClick={() => {}}
|
||||||
|
onMouseDown={this.props.rootNode ? function(e){e.stopPropagation()} : undefined}
|
||||||
>
|
>
|
||||||
{node.name}
|
{node.name}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user