-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Hi, I am using the DefaultLinkWidget and set the setMaxNumberPointsPerLink=0 for engine to not create point when click on the link.
I found that when right click on the link, it remove the link , I think the related code is
react-diagrams/packages/react-diagrams-defaults/src/link/DefaultLinkSegmentWidget.tsx
Lines 44 to 49 in 0deaec2
onContextMenu: () => { | |
if (!this.props.link.isLocked()) { | |
event.preventDefault(); | |
this.props.link.remove(); | |
} | |
} |
I not sure why this is the default behavior , but in our app we does not want it. Do you mind if I make a PR to make this behavior optional or passing a customize onContextMenu function?
Metadata
Metadata
Assignees
Labels
No labels