]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: respect inheritAttrs
authorEvan You <evan@vuejs.org>
Mon, 9 Dec 2024 05:12:37 +0000 (13:12 +0800)
committerEvan You <evan@vuejs.org>
Mon, 9 Dec 2024 05:12:37 +0000 (13:12 +0800)
packages/runtime-vapor/src/component.ts

index 7334bbecfa547d2517cffcf2b7caf84dbcae49fb..a70bbdc9a20777b8ea65d1e00cca389fb5d1b2a2 100644 (file)
@@ -104,6 +104,7 @@ export function createComponent(
   // if yes, inject parent attrs as dynamic props source
   if (
     isSingleRoot &&
+    component.inheritAttrs !== false &&
     isVaporComponent(currentInstance) &&
     currentInstance.hasFallthrough
   ) {