mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 02:12:56 +00:00
fix: trigger node.add event on mergeChildren
This commit is contained in:
parent
73dacadaee
commit
f483970aef
@ -462,6 +462,9 @@ export class NodeChildren implements INodeChildren {
|
||||
const node: INode = this.owner.document?.createNode(child);
|
||||
this.children.push(node);
|
||||
node.internalSetParent(this.owner);
|
||||
/* istanbul ignore next */
|
||||
const editor = node.document?.designer.editor;
|
||||
editor?.eventBus.emit('node.add', { node });
|
||||
});
|
||||
changed = true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user