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

Multiple Triggers, one Dropdown - broken display location since 0.76.3 #1249

Open
camboui opened this issue Jul 8, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@camboui
Copy link

camboui commented Jul 8, 2024

Describe the bug

Hi,
Since @melt-ui/svelte > 0.76.3 I can't manage to get a working dropdown with multiple triggers. It always pops up near the wrong trigger.

  • Expected behavior: dropdown pops up near triggered trigger
  • @melt-ui/svelte >= 0.77.0 Behaviour: Triggering any trigger does the same thing : dropdown pops up on the latest trigger. (also latest trigger seems to be 'selected' when dropdown is closed)
    image

I couldn't figure out what breaks it in those change : v0.76.3...v0.77.0

Reproduction

Here is a stackblitz.

https://stackblitz.com/edit/github-lmtmvy?file=package.json,src/routes/+page.svelte,src/lib/components/Dropdown.svelte

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.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @melt-ui/svelte: 0.77.0 => 0.77.0 
    @sveltejs/kit: ^2.0.0 => 2.5.18 
    svelte: ^4.1.2 => 4.2.18

Severity

blocking an upgrade

@camboui camboui added the bug Something isn't working label Jul 8, 2024
@huntabyte
Copy link
Member

Related to what I described here: #1055 (comment)

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
Development

No branches or pull requests

2 participants