From 2277b2322cf81b5830a5b85f6600e1896edc7aa9 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 28 Feb 2019 14:36:47 -0500 Subject: [PATCH] fix: scoped slots dynamic check should include v-for on element itself fix #9596 --- src/compiler/codegen/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/codegen/index.js b/src/compiler/codegen/index.js index d433f756282..c96b3a38511 100644 --- a/src/compiler/codegen/index.js +++ b/src/compiler/codegen/index.js @@ -366,7 +366,7 @@ function genScopedSlots ( // components with only scoped slots to skip forced updates from parent. // but in some cases we have to bail-out of this optimization // for example if the slot contains dynamic names, has v-if or v-for on them... - let needsForceUpdate = Object.keys(slots).some(key => { + let needsForceUpdate = el.for || Object.keys(slots).some(key => { const slot = slots[key] return ( slot.slotTargetDynamic ||