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

Custom popper handles select all text on the page #191

Open
Hoogkamer opened this issue Nov 16, 2024 · 1 comment
Open

Custom popper handles select all text on the page #191

Hoogkamer opened this issue Nov 16, 2024 · 1 comment

Comments

@Hoogkamer
Copy link

Hi, there are 2 issues with the custom popper handles:

  • When starting dragging from the handle all text gets selected
  • When dragging second time the ghost edge does not appear and cursor shows no-drop icon

notes:

  • Tested with Edge and chrome on windows
  • It seems to be a recent problem

Reproduce:

  • go to first demo link
  • choose "use custom popper handles"
  • then drag from the handle to a different node to create an edge
    image
@maxkfranz
Copy link
Member

@Hoogkamer, would you make a PR to address the demo?

The code for custom handles is up to the app, and the demo is just a simple example. There will always be customisations needed, depending on the app itself.

That being said, you're welcome to add a workaround for this particular issue in a PR if you like. It probably just needs a preventDefault().

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

2 participants