huntabyte / vaul-svelte

An unstyled drawer component for Svelte.
https://vaul-svelte.com
MIT License
395 stars 16 forks source link

close on outside click doesn't work for nested drawers #74

Open aram-p opened 3 months ago

aram-p commented 3 months ago

Describe the bug

if there is a drawer in another drawer clicking outside for either Drawer.Content won't do anything

Reproduction

https://stackblitz.com/edit/vaul-svelte-nested-drawers

open stackblitz, open drawer and click outside

Logs

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.3 - /usr/local/bin/pnpm
  npmPackages:
    @sveltejs/kit: ^2.0.0 => 2.0.6 
    svelte: ^4.2.7 => 4.2.8 
    typescript: ^5.0.0 => 5.3.3 
    vaul-svelte: latest => 0.3.0


### Severity

annoyance