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