Skip to content

Commit

Permalink
fix: scoped slots dynamic check should include v-for on element itself
Browse files Browse the repository at this point in the history
fix #9596
  • Loading branch information
yyx990803 committed Feb 28, 2019
1 parent 7912f75 commit 2277b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/codegen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 2277b23

Please sign in to comment.