Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Interact Outside]: Interact outside doesn't fire when clicking outside opens a new floating element #1167

Closed
anatolzak opened this issue Apr 8, 2024 · 1 comment · Fixed by #1192 · May be fixed by patooworld/novel#3
Closed
Labels
bug Something isn't working

Comments

@anatolzak
Copy link
Contributor

Describe the bug

Interact outside doesn't fire (doesn't close a floating element) when an outside interaction opens a new sibling floating element.

An example of this is opening one popover, and opening a second sibling popover. When opening a second popover, that should be counted as an outside interaction of the first popover and hence the first popover should close. However, currently, the first popover doesn't close as can be seen in the video below.

Screen.Recording.2024-04-08.at.1.28.18.PM.mov

Reproduction

See video above which uses an example straight from the docs.

Logs

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (6) 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:
    @melt-ui/svelte: latest => 0.76.3 
    @sveltejs/kit: ^2.0.0 => 2.5.5 
    svelte: ^4.1.2 => 4.2.12

Severity

annoyance

@anatolzak
Copy link
Contributor Author

#1080 closes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant