mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 03:01:16 +00:00
fix: removed incorrectly calling childWhitelist hook logic during drag and drop (#1141)
This commit is contained in:
parent
86b8889ec4
commit
6576346b91
@ -1167,12 +1167,10 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const dropContainer = this.getDropContainer(e);
|
const dropContainer = this.getDropContainer(e);
|
||||||
const childWhitelist = dropContainer?.container?.componentMeta?.childWhitelist;
|
|
||||||
const lockedNode = getClosestNode(dropContainer?.container as Node, (node) => node.isLocked);
|
const lockedNode = getClosestNode(dropContainer?.container as Node, (node) => node.isLocked);
|
||||||
if (lockedNode) return null;
|
if (lockedNode) return null;
|
||||||
if (
|
if (
|
||||||
!dropContainer ||
|
!dropContainer
|
||||||
(nodes && typeof childWhitelist === 'function' && !childWhitelist(operationalNodes[0]))
|
|
||||||
) {
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user