Skip to content

Commit 8b5ecaa

Browse files
committed
fix: handle async placeholders in normalizeScopedSlot
1 parent e20581f commit 8b5ecaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/vdom/helpers/normalize-scoped-slots.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { def } from 'core/util/lang'
44
import { normalizeChildren } from 'core/vdom/helpers/normalize-children'
55
import { emptyObject } from 'shared/util'
6+
import { isAsyncPlaceholder } from './is-async-placeholder'
67

78
export function normalizeScopedSlots (
89
slots: { [key: string]: Function } | void,
@@ -62,7 +63,7 @@ function normalizeScopedSlot(normalSlots, key, fn) {
6263
: normalizeChildren(res)
6364
return res && (
6465
res.length === 0 ||
65-
(res.length === 1 && res[0].isComment) // #9658
66+
(res.length === 1 && res[0].isComment && !isAsyncPlaceholder(res[0])) // #9658, #10391
6667
) ? undefined
6768
: res
6869
}

0 commit comments

Comments
 (0)