File tree Expand file tree Collapse file tree
packages/vue-node-registry/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,18 +88,19 @@ export class VueNodeView extends HtmlNode {
8888
8989 if ( root ) {
9090 const nodeConfig = getVueNodeConfig ( model . type , graphModel )
91+ const flowId = this . props . graphModel . flowId
9192 if ( ! nodeConfig ) {
9293 // No registered config for this node type; ensure any existing Teleport mount is cleaned up
93- if ( isVue3 && isActive ( ) ) {
94- disconnect ( this . targetId ( ) )
94+ if ( isVue3 && isActive ( ) && flowId ) {
95+ disconnect ( this . targetId ( ) , flowId )
9596 }
9697 return
9798 }
9899 const { component } = nodeConfig
99100 if ( ! component ) {
100101 // Config exists but has no component; also clean up any existing Teleport mount
101- if ( isVue3 && isActive ( ) ) {
102- disconnect ( this . targetId ( ) )
102+ if ( isVue3 && isActive ( ) && flowId ) {
103+ disconnect ( this . targetId ( ) , flowId )
103104 }
104105 return
105106 }
You can’t perform that action at this time.
0 commit comments