]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): fix directive inheritance on dev root fragment
authorEvan You <yyx990803@gmail.com>
Wed, 11 May 2022 10:02:31 +0000 (18:02 +0800)
committerEvan You <yyx990803@gmail.com>
Wed, 11 May 2022 10:02:31 +0000 (18:02 +0800)
fix #5523

packages/runtime-core/src/renderer.ts

index 47a566e73e66ae9e7de63e403278ba05c6f78579..bd4a03e87c1ec7c885aa46fd95905d581be2c35b 100644 (file)
@@ -1098,6 +1098,8 @@ function baseCreateRenderer(
       if (
         patchFlag > 0 &&
         patchFlag & PatchFlags.STABLE_FRAGMENT &&
+        // #5523 dev root fragment may inherit directives so always force update
+        !(__DEV__ && patchFlag & PatchFlags.DEV_ROOT_FRAGMENT) &&
         dynamicChildren &&
         // #2715 the previous fragment could've been a BAILed one as a result
         // of renderSlot() with no valid children