Fix when it disappears when connecting an edge to update to a new node

This commit is contained in:
moretall
2021-09-13 16:50:02 +09:00
parent b3f102ce1b
commit eff3e72e4f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
_onEdgeUpdate
);
},
[id, source, target, type, sourceHandleId, targetHandleId, setConnectionNodeId, setPosition, edgeElement]
[id, source, target, type, sourceHandleId, targetHandleId, setConnectionNodeId, setPosition, edgeElement, onConnectEdge]
);
const onEdgeUpdaterSourceMouseDown = useCallback(
+1 -1
View File
@@ -72,7 +72,7 @@ const Edge = ({
(connection: Connection) => {
props.onEdgeUpdate?.(edge, connection);
},
[edge]
[edge, props.onEdgeUpdate]
);
if (!sourceNode) {