-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
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
{{Yield}} content isn't injected in the correct place #561
Comments
This looks related to the changes in 1.18.0 for #3. It's a bit hard to tell what's going on the in REPL because there seem to be some other bugs in the REPL surfacing as I look at this. But I'm fairly certain the code being generated is actually wrong. The code creates the div and places the button in it: var div_1 = createElement( 'div' );
setAttribute( div_1, 'svelte-2785217407', '' );
div_1.className = "modal";
appendNode( createText( " \n\t" ), div_1 );
var button = createElement( 'button' );
appendNode( button, div_1 ); and then later mounts the component._yield && component._yield.mount( div_1, null ); Things look okay if you wrap the |
This looks like the change at fault. If the |
Mea culpa! Am toying around with this though and I think we might still be able to do it without anchors... will report back |
per docs https://svelte.technology/guide#yield-tags:
The button below appears above the yielded content instead of below it
The text was updated successfully, but these errors were encountered: