]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: ensure vnode anchor is removed only if it exists
authordaiwei <daiwei521@126.com>
Tue, 12 Aug 2025 10:04:56 +0000 (18:04 +0800)
committerdaiwei <daiwei521@126.com>
Tue, 12 Aug 2025 10:04:56 +0000 (18:04 +0800)
packages/runtime-vapor/src/vdomInterop.ts

index 38a2f5e2d8318dae0d32d5416cf97c4ca17c97ae..b60875873db77dfed2625ccd65879ead684a99c8 100644 (file)
@@ -142,7 +142,7 @@ const vaporInteropImpl: Omit<
     } else if (vnode.vb) {
       remove(vnode.vb, container)
     }
-    remove(vnode.anchor as Node, container)
+    if (vnode.anchor) remove(vnode.anchor as Node, container)
   },
 
   /**