Skip to content

right click on Default Link will remove the link  #1038

Description

@marylin13

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions