react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

allowLooseLinks=false config is not working as expected

Open Hkbm77 opened this issue 2 years ago • 0 comments

In reference to the issue 322 (https://github.com/projectstorm/react-diagrams/issues/322), the config to set allowLooseLink to false doesn't work properly, we trying to restrict the loose link from the react diagram nodes, for that we set allowLooseLinks=false, its restricting the loose link to some extend but it is so sporadic that if we are trying to extend the link from the node for 3-4 times continuously the react-diagram is allowing the loose links. Is there any other way to restrict the loose links ?

if (state instanceof DefaultDiagramState) { state.dragNewLink.config.allowLooseLinks = false; }

Hkbm77 avatar May 18 '22 10:05 Hkbm77