]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(renderSlot): set slot render as a STABLE_FRAGMENT (#776)
authorysj16 <504427021@qq.com>
Tue, 25 Feb 2020 15:41:44 +0000 (23:41 +0800)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2020 15:41:44 +0000 (16:41 +0100)
fix #766

packages/runtime-core/src/helpers/renderSlot.ts

index 186cdfed1ebb1211e31f574b771025b043651a06..12f4b18d0614eafa6e5cff1d70cceabcdcb8052e 100644 (file)
@@ -35,7 +35,7 @@ export function renderSlot(
       Fragment,
       { key: props.key },
       slot ? slot(props) : fallback || [],
-      slots._ ? 0 : PatchFlags.BAIL
+      slots._ ? PatchFlags.STABLE_FRAGMENT : PatchFlags.BAIL
     )
   )
 }