Closed delphi-sucks closed 4 months ago
This has been changed. Handles will not receive default ids anymore since that lead to it's own bugs and issues. If you want handle ids to not be null, assign an explicit id to the handle.
Alright ^^b
For Documentation sake for anyone working with old data, that would need to be migrated otherwise:
<template>
<slot />
<Handle
:id="`${props.id}__handle-top`"
:position="Position.Top"
/>
<Handle
:id="`${props.id}__handle-left`"
:position="Position.Left"
/>
<Handle
:id="`${props.id}__handle-right`"
:position="Position.Right"
/>
<Handle
:id="`${props.id}__handle-bottom`"
:position="Position.Bottom"
/>
</template>
<script setup lang="ts">
import { Handle, NodeProps, Position } from "@vue-flow/core";
const props = defineProps<NodeProps>();
</script>
Is there an existing issue for this?
Current Behavior
The Event
onConnect
gives the following object, if two nodes are connected:Expected Behavior
The Event
onConnect
should also contain the handlesSteps To Reproduce
Use the following example (or the curent one in the website) and connect the nodes.
console.log
will return the invalid object.Relevant log output
No response
Anything else?
It previously worked on version 1.23.0.