]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update
authordaiwei <daiwei521@126.com>
Fri, 8 Aug 2025 13:23:14 +0000 (21:23 +0800)
committerdaiwei <daiwei521@126.com>
Fri, 8 Aug 2025 13:23:14 +0000 (21:23 +0800)
packages/runtime-vapor/src/dom/hydration.ts

index 8abd4ee4b5c7474c008934d65af031c8846482e5..db7b3c30e74db919d0249fbbffdaff93b4a5e08f 100644 (file)
@@ -103,7 +103,7 @@ function adoptTemplateImpl(node: Node, template: string): Node | null {
 
       // empty text node in slot
       if (
-        template === ' ' &&
+        template.trim() === '' &&
         isComment(node, ']') &&
         isComment(node.previousSibling!, '[')
       ) {