Skip to content

Commit e830522

Browse files
committed
try workaround
1 parent 76514dc commit e830522

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

demo/App.svelte

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
<div class="page">
2-
<my-component a-boolean={false} />
1+
<script>
2+
let x = false;
3+
4+
function toggle() {
5+
x = !x;
6+
}
7+
</script>
8+
9+
<div class="page" on:click={toggle}>
10+
<my-component a-boolean={x} />
311
</div>
412

513
<style>
@@ -10,9 +18,4 @@
1018
right: 0;
1119
bottom: 0;
1220
}
13-
14-
.page-content {
15-
height: 150vh;
16-
padding: 0 16px;
17-
}
1821
</style>

0 commit comments

Comments
 (0)