Fix when it disappears when connecting an edge to update to a new node
This commit is contained in:
@@ -160,7 +160,7 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
|
|||||||
_onEdgeUpdate
|
_onEdgeUpdate
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
[id, source, target, type, sourceHandleId, targetHandleId, setConnectionNodeId, setPosition, edgeElement]
|
[id, source, target, type, sourceHandleId, targetHandleId, setConnectionNodeId, setPosition, edgeElement, onConnectEdge]
|
||||||
);
|
);
|
||||||
|
|
||||||
const onEdgeUpdaterSourceMouseDown = useCallback(
|
const onEdgeUpdaterSourceMouseDown = useCallback(
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ const Edge = ({
|
|||||||
(connection: Connection) => {
|
(connection: Connection) => {
|
||||||
props.onEdgeUpdate?.(edge, connection);
|
props.onEdgeUpdate?.(edge, connection);
|
||||||
},
|
},
|
||||||
[edge]
|
[edge, props.onEdgeUpdate]
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!sourceNode) {
|
if (!sourceNode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user