Skip to content

Commit 36343f9

Browse files
committed
fix(runtime-vapor): render slot fallback if slot content is not a valid block
close #13668
1 parent 56a7f9d commit 36343f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/runtime-vapor/src/componentSlots.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export function createSlot(
126126
const renderSlot = () => {
127127
const slot = getSlot(rawSlots, isFunction(name) ? name() : name)
128128
if (slot) {
129+
fragment.fallback = fallback
129130
// create and cache bound version of the slot to make it stable
130131
// so that we avoid unnecessary updates if it resolves to the same slot
131132
fragment.update(

0 commit comments

Comments
 (0)