Skip to content

Commit

Permalink
Addressing review comments from #2160
Browse files Browse the repository at this point in the history
  • Loading branch information
anudeepreddy committed Aug 11, 2021
1 parent 1b19baf commit 5e1ac19
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/kit/test/apps/basics/src/routes/__layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
}
if (browser) {
let h3 = document.createElement('h3');
let text = document.createTextNode('You cannot reset me');
const h3 = document.createElement('h3');
const text = document.createTextNode('I should not be rendered');
h3.appendChild(text);
document.getElementById('nested-layout-reset-test')?.appendChild(h3);
const parentDiv = document.getElementById('nested-layout-reset-test');
if (parentDiv) {
parentDiv.appendChild(h3);
}
}
</script>

Expand All @@ -31,7 +34,7 @@
export let foo;
</script>

<slot></slot>
<slot />

<footer>{foo.bar}</footer>

Expand Down

0 comments on commit 5e1ac19

Please sign in to comment.