Skip to content

Commit 9b5b39c

Browse files
committed
fix(vue-node-registry): 修复拖拽创建vue-node-registry节点时控制台报错问题
1 parent 8b0033f commit 9b5b39c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/vue-node-registry/src

packages/vue-node-registry/src/view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class VueNodeView extends HtmlNode {
9292
isVue3 && this.vm.unmount()
9393
this.vm = null
9494
}
95-
if (root) {
95+
if (root && !isActive()) {
9696
root.innerHTML = ''
9797
}
9898
return root

0 commit comments

Comments
 (0)