]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(vapor): handle next host node for vapor component (#12820)
authoredison <daiwei521@126.com>
Fri, 28 Feb 2025 09:02:11 +0000 (17:02 +0800)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2025 09:02:11 +0000 (17:02 +0800)
packages/runtime-core/src/renderer.ts

index fcbfdd0426cd28edbde6fa3b1db823a058248e55..88012204ec81304c7841536fad5deff1fbfbcc63 100644 (file)
@@ -2418,6 +2418,9 @@ function baseCreateRenderer(
 
   const getNextHostNode: NextFn = vnode => {
     if (vnode.shapeFlag & ShapeFlags.COMPONENT) {
+      if ((vnode.type as ConcreteComponent).__vapor) {
+        return hostNextSibling((vnode.component! as any).block)
+      }
       return getNextHostNode(vnode.component!.subTree)
     }
     if (__FEATURE_SUSPENSE__ && vnode.shapeFlag & ShapeFlags.SUSPENSE) {