refactor(flows): support muliple flows on one site

This commit is contained in:
moklick
2020-10-01 17:59:51 +02:00
parent c558019de6
commit 988389bedf
+1 -1
View File
@@ -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;