Fix order of style tag in new example

pull/6962/head
Nayan Gautam 5 years ago
parent 661bdbf4bb
commit b674421434

@ -8,6 +8,13 @@
}
</script>
<button on:click={() => (showModal = true)}>Show Modal</button>
{#if showModal}
<div class="box" use:clickOutside on:outclick={handleOutclick}>
Click outside me!
</div>
{/if}
<style>
.box {
--width: 100px;
@ -23,11 +30,4 @@
text-align: center;
font-weight: bold;
}
</style>
<button on:click={() => (showModal = true)}>Show Modal</button>
{#if showModal}
<div class="box" use:clickOutside on:outclick={handleOutclick}>
Click outside me!
</div>
{/if}
</style>
Loading…
Cancel
Save