Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

right click on Default Link will remove the link #1038

Open
marylin13 opened this issue Jul 31, 2024 · 0 comments
Open

right click on Default Link will remove the link #1038

marylin13 opened this issue Jul 31, 2024 · 0 comments

Comments

@marylin13
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant