Skip to content

right click on Default Link will remove the link  #1038

Open
@marylin13

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions