fix(nodes): use correct handleId
This commit is contained in:
@@ -20,7 +20,7 @@ const handleId = computed(() =>
|
|||||||
const { onMouseDown, onClick } = useHandle()
|
const { onMouseDown, onClick } = useHandle()
|
||||||
const onMouseDownHandler = (event: MouseEvent) =>
|
const onMouseDownHandler = (event: MouseEvent) =>
|
||||||
onMouseDown(event, handleId.value, nodeId, props.type === 'target', props.isValidConnection, undefined)
|
onMouseDown(event, handleId.value, nodeId, props.type === 'target', props.isValidConnection, undefined)
|
||||||
const onClickHandler = (event: MouseEvent) => onClick(event, props.id ?? null, nodeId, props.type, props.isValidConnection)
|
const onClickHandler = (event: MouseEvent) => onClick(event, handleId.value ?? null, nodeId, props.type, props.isValidConnection)
|
||||||
</script>
|
</script>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
@@ -35,7 +35,7 @@ export default {
|
|||||||
:class="[
|
:class="[
|
||||||
'vue-flow__handle',
|
'vue-flow__handle',
|
||||||
`vue-flow__handle-${props.position}`,
|
`vue-flow__handle-${props.position}`,
|
||||||
`vue-flow__handle-${id}`,
|
`vue-flow__handle-${handleId}`,
|
||||||
'nodrag',
|
'nodrag',
|
||||||
{
|
{
|
||||||
source: props.type !== 'target',
|
source: props.type !== 'target',
|
||||||
@@ -43,7 +43,7 @@ export default {
|
|||||||
connectable: props.connectable,
|
connectable: props.connectable,
|
||||||
connecting:
|
connecting:
|
||||||
connectionStartHandle?.nodeId === nodeId &&
|
connectionStartHandle?.nodeId === nodeId &&
|
||||||
connectionStartHandle?.handleId === props.id &&
|
connectionStartHandle?.handleId === handleId &&
|
||||||
connectionStartHandle?.type === props.type,
|
connectionStartHandle?.type === props.type,
|
||||||
},
|
},
|
||||||
]"
|
]"
|
||||||
|
|||||||
Reference in New Issue
Block a user