Skip to content

Commit

Permalink
fix: removed incorrectly calling childWhitelist hook logic during dra…
Browse files Browse the repository at this point in the history
…g and drop (#1141)
  • Loading branch information
liujuping authored Oct 18, 2022
1 parent 86b8889 commit 6576346
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/designer/src/builtin-simulator/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6576346

Please sign in to comment.