From: Evan You Date: Wed, 11 May 2022 10:02:31 +0000 (+0800) Subject: fix(runtime-core): fix directive inheritance on dev root fragment X-Git-Tag: v3.2.34-beta.1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bab63968355995a4026cf5cd1ccad7c79e8d89c;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-core): fix directive inheritance on dev root fragment fix #5523 --- diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 47a566e73e..bd4a03e87c 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -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