diff --git a/src/components/Handle/Handle.vue b/src/components/Handle/Handle.vue index 440f5f4e..823f3049 100644 --- a/src/components/Handle/Handle.vue +++ b/src/components/Handle/Handle.vue @@ -16,7 +16,6 @@ const props = withDefaults(defineProps(), { type: 'source', position: Position.Top, connectable: true, - isValidConnection: () => true, }) const store = useStore() @@ -25,7 +24,7 @@ const nodeId = inject(NodeIdContextKey)! const handler = useHandle() const onMouseDownHandler = (event: MouseEvent) => - handler(event, props.id, nodeId, props.type === 'target', props.isValidConnection) + handler(event, props.id, nodeId, props.type === 'target', props.isValidConnection ?? (() => true))