feat: Assign default handle id and allow for actual loose connections
* When set to loose allow connections from all handles, this requires ids on handles so a default will be set if none provided
This commit is contained in:
@@ -152,7 +152,8 @@ export default (store: Store = useVueFlow().store) => {
|
||||
const isOwnHandle = connection.source === connection.target
|
||||
|
||||
if (isValid && !isOwnHandle) {
|
||||
onEdgeUpdate?.(connection)
|
||||
if (!onEdgeUpdate) store.hooks.connect.trigger(connection)
|
||||
else onEdgeUpdate(connection)
|
||||
}
|
||||
|
||||
store.hooks.connectEnd.trigger(event)
|
||||
|
||||
Reference in New Issue
Block a user