mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 07:14:23 +00:00
fix: cancel dragging on invalid position
This commit is contained in:
parent
ea62f12343
commit
f961096542
@ -99,7 +99,7 @@ export class Designer {
|
|||||||
const { dragObject, copy } = e;
|
const { dragObject, copy } = e;
|
||||||
const loc = this._dropLocation;
|
const loc = this._dropLocation;
|
||||||
if (loc) {
|
if (loc) {
|
||||||
if (isLocationChildrenDetail(loc.detail)) {
|
if (isLocationChildrenDetail(loc.detail) && loc.detail.valid !== false) {
|
||||||
let nodes: Node[] | undefined;
|
let nodes: Node[] | undefined;
|
||||||
if (isDragNodeObject(dragObject)) {
|
if (isDragNodeObject(dragObject)) {
|
||||||
nodes = insertChildren(loc.target, dragObject.nodes, loc.detail.index, copy);
|
nodes = insertChildren(loc.target, dragObject.nodes, loc.detail.index, copy);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user