We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are some cases where adding an element as a top level <body> child element is useful.
<body>
position:absolute
Support child elements to <svelte:body>
<svelte:body>
<svelte:body> <div class="my-bubble">Bubble prompt</div> </svelte:body>
<script> import { onMount, onDestroy } from 'svelte' import BubblePrompt from './BubblePrompt.svelte' let bubble_prompt onMount(()=>{ bubble_prompt = new BubblePrompt(document.body, { text: 'Bubble prompt' }) }) onDestroy(()=>{ bubble_prompt.$destroy() }) </script>
nice to have
The text was updated successfully, but these errors were encountered:
This is essentially a duplicate of #1133, and perhaps also #3105.
Sorry, something went wrong.
No branches or pull requests
Describe the problem
There are some cases where adding an element as a top level
<body>
child element is useful.position:absolute
is often added as a direct child of<body>
Describe the proposed solution
Support child elements to
<svelte:body>
Alternatives considered
Importance
nice to have
The text was updated successfully, but these errors were encountered: