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