From e11fddf70ad8e6a9b6536b7a9d680b93ea6b1a3c Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 21 Oct 2021 15:10:42 +0200 Subject: [PATCH] fix: valid connection func in handle --- src/components/Handle/Handle.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))