Skip to content

Commit 6576346

Browse files
authored
fix: removed incorrectly calling childWhitelist hook logic during drag and drop (alibaba#1141)
1 parent 86b8889 commit 6576346

File tree

1 file changed

+1
-3
lines changed
  • packages/designer/src/builtin-simulator

1 file changed

+1
-3
lines changed

packages/designer/src/builtin-simulator/host.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,12 +1167,10 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
11671167
return null;
11681168
}
11691169
const dropContainer = this.getDropContainer(e);
1170-
const childWhitelist = dropContainer?.container?.componentMeta?.childWhitelist;
11711170
const lockedNode = getClosestNode(dropContainer?.container as Node, (node) => node.isLocked);
11721171
if (lockedNode) return null;
11731172
if (
1174-
!dropContainer ||
1175-
(nodes && typeof childWhitelist === 'function' && !childWhitelist(operationalNodes[0]))
1173+
!dropContainer
11761174
) {
11771175
return null;
11781176
}

0 commit comments

Comments
 (0)