refactor(flows): support muliple flows on one site
This commit is contained in:
@@ -52,7 +52,7 @@ function onMouseDown(
|
||||
onConnectStop?: OnConnectStopFunc,
|
||||
onConnectEnd?: OnConnectEndFunc
|
||||
): void {
|
||||
const reactFlowNode = document.querySelector('.react-flow');
|
||||
const reactFlowNode = (event.target as Element).closest('.react-flow');
|
||||
|
||||
if (!reactFlowNode) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user