fix: 修复组件不会插入到选中节点之内或者之后的逻辑

This commit is contained in:
力皓 2020-12-17 15:51:19 +08:00
parent 6bf75cd526
commit 93b005ba8d

View File

@ -937,7 +937,7 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
}
if (this.parent) {
return this.parent.getSuitablePlace(node, ref);
return this.parent.getSuitablePlace(node, { index: this.index });
}
return null;