fix(runtime-core): clone root vnode before inheriting directives
This commit is contained in:
		
							parent
							
								
									9ecee16f89
								
							
						
					
					
						commit
						d36ca4d80e
					
				@ -215,6 +215,8 @@ export function renderComponentRoot(
 | 
			
		||||
          `The directives will not function as intended.`
 | 
			
		||||
      )
 | 
			
		||||
    }
 | 
			
		||||
    // clone before mutating since the root may be a hoisted vnode
 | 
			
		||||
    root = cloneVNode(root)
 | 
			
		||||
    root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs
 | 
			
		||||
  }
 | 
			
		||||
  // inherit transition data
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user