Skip to content

Commit 9eeb05a

Browse files
committed
chore: fallback to looking in props for the slot block
1 parent b352f08 commit 9eeb05a

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/dom/blocks/slot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function slot(anchor, $$props, name, slot_props, fallback_fn) {
1212
hydrate_next();
1313
}
1414

15-
var slot_fn = $$props.$$slots?.[name];
15+
var slot_fn = $$props.$$slots?.[name] || $$props[name];
1616
// Interop: Can use snippets to fill slots
1717
var is_interop = false;
1818
if (slot_fn === true) {

0 commit comments

Comments
 (0)