mirror of https://github.com/sveltejs/svelte
Svelte's custom element slot mechanism always creates the default slot
(via $$slots.default = true), so the fallback function is never called.
The querySelector('p') returned null because the <p> fallback content
is never rendered in the shadow DOM.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pull/17705/head
parent
3fb95a7fa2
commit
75dba19028
Loading…
Reference in new issue