Clicking connected dots will trigger onConnect event
See original GitHub issue🐛 Bug Report
As title says.
console output:
Warning: Encountered two children with the same key, `reactflow__edge-1-1`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
in g (created by EdgeRenderer)
in svg (created by EdgeRenderer)
in EdgeRenderer (created by GraphView)
in div (created by FlowRenderer)
in FlowRenderer (created by GraphView)
in GraphView (created by ReactFlow)
in StoreProvider (created by ReactFlowWrapper)
in ReactFlowWrapper (created by ReactFlow)
in div (created by ReactFlow)
in ReactFlow (at App.js:49)
in div (created by Context.Consumer)
in EmotionCssPropInternal (at App.js:38)
in App (at src/index.js:9)
in StrictMode (at src/index.js:8)
To Reproduce
- connect two nodes
- click any dot on one of the nodes
Expected behavior
Should not trigger onConnect event
Link to repl or repo
https://codesandbox.io/s/react-flow559-ddxhf
envinfo
package version: 6.1.1 OS: 64bit Mac OS X 10.14.6 18G6020
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Props List API - React Flow
This is the list of props you can pass to the ReactFlow component. ... Called after user stops a connection by click (called...
Read more >force client disconnect from server with socket.io and nodejs
emit('disconnect') triggers the disconnection event on the server, but does not effectively disconnect the client. The client is not aware of the disconnection....
Read more >How to Use Kafka Connect - Getting Started
This document provides concepts and instructions for getting started with Kafka Connect.
Read more >Connect Dots in After Effects - YouTube
After Effects Beginners Course ▽https://www.domestika.org/en/courses/2207-fundamentals-of-animation-in-after-effects/tierneytv A quick and ...
Read more >Windows Task Scheduler: Trigger an Event When Internet ...
Give your task a name in the General tab, and then click Triggers and then click New. display message on connect. In the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You are right, in that case we should think about adding a threshold for checking if the user has dragged. Thanks for clarifying!
released in 7.0.0