فهرست منبع

fix(container): workflow nested container parent cannot drop to children (#965)

Louis Young 2 ماه پیش
والد
کامیت
f3f8275e99
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      packages/plugins/free-container-plugin/src/node-into-container/service.ts

+ 6 - 1
packages/plugins/free-container-plugin/src/node-into-container/service.ts

@@ -298,7 +298,12 @@ export class NodeIntoContainerService {
   }): boolean {
     const { dragNode, dropNode } = params;
     const isDropContainer = dropNode?.getNodeMeta<WorkflowNodeMeta>().isContainer;
-    if (!dropNode || !isDropContainer || this.isParent(dragNode, dropNode)) {
+    if (
+      !dropNode ||
+      !isDropContainer ||
+      this.isParent(dragNode, dropNode) ||
+      this.isParent(dropNode, dragNode)
+    ) {
       return false;
     }
     if (