fix(examples) added connectionMode prop to examples

This commit is contained in:
Peter
2023-09-25 16:29:49 +02:00
parent 9fe6dc57f4
commit 7b5d98fc82
2 changed files with 2 additions and 1 deletions

View File

@@ -194,7 +194,7 @@ const OverviewFlow = () => {
<ReactFlow
nodes={nodes}
edges={edges}
connectionMode={ConnectionMode.Loose}
connectionMode={ConnectionMode.Strict}
onNodesChange={onNodesChange}
onEdgesChange={onEdgesChange}
onNodeClick={onNodeClick}

View File

@@ -162,6 +162,7 @@
}}
autoPanOnConnect
autoPanOnNodeDrag
connectionMode={ConnectionMode.Strict}
>
<Controls />
<Background variant={BackgroundVariant.Dots} />