Skip to Content
Vue Flow v2 is here and joins xyflow! Read more here →
ReferenceTypes

ConnectEndEvent

The ConnectEndEvent type is the payload of the @connect-end event, fired when a connection interaction finishes (whether or not it produced a connection). It carries the native event and the final connection state, so you can react even when no edge was created — e.g. to add a node where the connection was dropped.

Fields

NameTypeDefault
eventMouseTouchEvent

The DOM event that ended the connection attempt.

connectionStateFinalConnectionState<InternalNode<NodeType>>

The final connection state — validity plus the from/to handles and nodes.