From f96109654292c6151da830b1cacd3a62490e71fe Mon Sep 17 00:00:00 2001 From: "shuaige.zsg" Date: Mon, 11 May 2020 17:24:47 +0800 Subject: [PATCH] fix: cancel dragging on invalid position --- packages/designer/src/designer/designer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/designer/src/designer/designer.ts b/packages/designer/src/designer/designer.ts index 7bee2289b..066e2a481 100644 --- a/packages/designer/src/designer/designer.ts +++ b/packages/designer/src/designer/designer.ts @@ -99,7 +99,7 @@ export class Designer { const { dragObject, copy } = e; const loc = this._dropLocation; if (loc) { - if (isLocationChildrenDetail(loc.detail)) { + if (isLocationChildrenDetail(loc.detail) && loc.detail.valid !== false) { let nodes: Node[] | undefined; if (isDragNodeObject(dragObject)) { nodes = insertChildren(loc.target, dragObject.nodes, loc.detail.index, copy);