Feature: close floatover if pressed outside of it, fix #1647

This commit is contained in:
Pieter Vander Vennet 2023-10-09 02:07:25 +02:00
parent 5be24dbef1
commit d43f8c0080
3 changed files with 5 additions and 7 deletions

View file

@ -11,8 +11,9 @@
<div
class="absolute top-0 right-0 h-screen w-screen p-4 md:p-6"
style="background-color: #00000088"
on:click={() => {dispatch("close")}}
>
<div class="content normal-background">
<div class="content normal-background" on:click|stopPropagation={() => {}}>
<div class="h-full rounded-xl">
<slot />
</div>