Skip to content

Commit

Permalink
fix: handle async placeholders in normalizeScopedSlot
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 16, 2021
1 parent e20581f commit 8b5ecaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/vdom/helpers/normalize-scoped-slots.js
Expand Up @@ -3,6 +3,7 @@
import { def } from 'core/util/lang'
import { normalizeChildren } from 'core/vdom/helpers/normalize-children'
import { emptyObject } from 'shared/util'
import { isAsyncPlaceholder } from './is-async-placeholder'

export function normalizeScopedSlots (
slots: { [key: string]: Function } | void,
Expand Down Expand Up @@ -62,7 +63,7 @@ function normalizeScopedSlot(normalSlots, key, fn) {
: normalizeChildren(res)
return res && (
res.length === 0 ||
(res.length === 1 && res[0].isComment) // #9658
(res.length === 1 && res[0].isComment && !isAsyncPlaceholder(res[0])) // #9658, #10391
) ? undefined
: res
}
Expand Down

0 comments on commit 8b5ecaa

Please sign in to comment.