mirror of https://github.com/sveltejs/svelte
gather event listeners for slot default elements and render in a condition - fixes #1977
parent
8e9f37a7d4
commit
6c89975396
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
function click() {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<slot><button on:click>Should not appear</button></slot>
|
||||||
|
</p>
|
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
html: '<p>Hello</p>', show: true
|
||||||
|
};
|
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
import Nested from './Nested.html';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Nested>
|
||||||
|
Hello
|
||||||
|
</Nested>
|
Loading…
Reference in new issue