]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update edison/fix/12287 12299/head
authordaiwei <daiwei521@126.com>
Thu, 31 Oct 2024 12:42:52 +0000 (20:42 +0800)
committerdaiwei <daiwei521@126.com>
Thu, 31 Oct 2024 12:42:52 +0000 (20:42 +0800)
packages/runtime-core/src/component.ts
packages/runtime-core/src/components/Teleport.ts

index f8fc1a22421f049a6c91196de9722c0148e4407d..ff24df9fccfea6a6c0d4e57c52c09f9b8b343959 100644 (file)
@@ -582,7 +582,7 @@ export interface ComponentInternalInstance {
    * For updating css vars on contained teleports
    * @internal
    */
-  ut?: (target: RendererElement, vars?: Record<string, string>) => void
+  ut?: (target: RendererElement | null, vars?: Record<string, string>) => void
 
   /**
    * dev only. For style v-bind hydration mismatch checks
index 35c4c6ebe7102c6d58aeee05ae35fcd5893c65c4..881fe8e7d87f644f2e64fc60e2715160fb720df8 100644 (file)
@@ -480,7 +480,7 @@ function updateCssVars(vnode: VNode, isDisabled: boolean) {
       if (node.nodeType === 1) node.setAttribute('data-v-owner', ctx.uid)
       node = node.nextSibling
     }
-    ctx.ut(node.target)
+    ctx.ut(vnode.target)
   }
 }