melt-ui / melt-ui

A set of headless, accessible component builders for Svelte.
https://melt-ui.com
MIT License
3.5k stars 214 forks source link

drop down does not close when clicking on another drop down #1196

Open rzec-allma opened 6 months ago

rzec-allma commented 6 months ago

Describe the bug

If you open up a drop down then attempt to open another, the first drop down remains open but it should close.

Reproduction

https://stackblitz.com/edit/github-iaw99h-zsz6al

Logs

No response

System Info

System:
    OS: macOS 14.4.1
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 1.78 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
    pnpm: 8.9.0 - ~/.nvm/versions/node/v20.12.2/bin/pnpm
  Browsers:
    Chrome: 124.0.6367.119
    Safari: 17.4.1
  npmPackages:
    @melt-ui/svelte: 0.79.0 => 0.79.0
    @sveltejs/kit: 2.5.7 => 2.5.7
    svelte: 4.2.15 => 4.2.15

Severity

blocking all usage of Melt UI

rzec-allma commented 6 months ago

For context, this was also an issue for the combo and while that was fixed between 0.77.0 <-> 0.79.0, the issue remained here

jesse-a-reilly commented 2 weeks ago

Still an issue as of @meltui/svelte v0.85.0