2

I don't want to allow users drag the nodes, and that is possible with draggable: false option, or the prop that disables it for all the nodes. But when i go to a node click and drag a node the node doesn't drag but the background does and it looks like that the node is being dragged, is there any option to disable dragging when the user hovers on a node, or any other option that fixes this?

1 Answer 1

1

To avoid node dragging add nodesDraggable={false}

ReactFlow defaultNodes={defaultNodes} defaultEdges={defaultEdges} fitView nodesDraggable={false}>
      <Background />
      <Controls />
    </ReactFlow>
Sign up to request clarification or add additional context in comments.

2 Comments

'nodesDraggable' option does not exist on newer versions
I am using the latest version and it exists

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.