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

Setting connectionMode to loose prevents self-connections from handles rendered in the same CustomNode #4161

Open
jonlev1n opened this issue Apr 16, 2024 · 0 comments

Comments

@jonlev1n
Copy link

jonlev1n commented Apr 16, 2024

Describe the Bug

Using the Easy Connect example, setting the connectionMode prop to "loose" somehow disables the ability for the source handle to connect to a target handle rendered in the same node.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Open Easy Connect in the code sandbox
  2. Set connectionMode={ConnectionMode.Loose}
  3. Observe that the connection line no longer "snaps" when the source node and target node are the same

Expected behavior

As a user, I would expect that the ConnectionMode.Loose would not prevent self-connection

Screenshots or Videos

With default strict settings:

reactflow-strict.mov

And with loose:

reactflow-loose.mov

Platform

  • OS: macOS 14.2.1 [arm64]
  • Browser: Chrome 123.0.6312.122
  • Reactflow: 11.11.1

Additional context

No response

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