React-diagrams: allowLooseLinks: false not working

Created on 7 Apr 2020  路  2Comments  路  Source: projectstorm/react-diagrams

Hi Team,

I tried to avoid loose links in this library but it not working with allowLooseLinks: false.

<CanvasWidget
 engine={engine}
 model={model}
 allowLooseLinks={false}
 />

Most helpful comment

What is your react-diagrams version? This prop worked on v5, but to disallow loose links on v6 you'll have to do this:

https://github.com/projectstorm/react-diagrams/blob/47e4a145205f99686923fa03ccc8b3e5fe8c8068/packages/diagrams-demo-gallery/demos/demo-simple-flow/index.tsx#L11-L14

All 2 comments

What is your react-diagrams version? This prop worked on v5, but to disallow loose links on v6 you'll have to do this:

https://github.com/projectstorm/react-diagrams/blob/47e4a145205f99686923fa03ccc8b3e5fe8c8068/packages/diagrams-demo-gallery/demos/demo-simple-flow/index.tsx#L11-L14

@renato-bohler Thank you so much for your reply, it works for me.

react diagram version"@projectstorm/react-diagrams": "^6.0.1-beta.7",

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shortwavedave picture shortwavedave  路  3Comments

CarlousF picture CarlousF  路  3Comments

dixitk13 picture dixitk13  路  3Comments

ganesh-sankey picture ganesh-sankey  路  4Comments

M2Costa picture M2Costa  路  3Comments