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

Svelte 5 forward bind:group #11009

Closed
noclat opened this issue Mar 31, 2024 · 1 comment
Closed

Svelte 5 forward bind:group #11009

noclat opened this issue Mar 31, 2024 · 1 comment
Milestone

Comments

@noclat
Copy link

noclat commented Mar 31, 2024

Describe the bug

Hi, been playing with Svelte 5 and noticed even though you can have arbitrary property binding with $bindable(), forwarding a state to bind:group doesn't work on <input type="checkbox" />. Clicking on any checkbox would reset the group state array with its value instead of toggling it. Is this a known bug? Or am I doing something wrong? It's a big roadblock to making component libraries.

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE41STY-bMBD9KyN3tRApgp5ZoF_HHvawvSU5ODAEt8a2bJO2Qvz32tigpdtDlQOel5nn5_dmIh3jaEhxmoigA5KCfFKKHIn9rXxh7sgtutrIUTceKU2jmbL1WQCwQUlt4UuPzY-r_AWdlgMkWb4CWRhPns7Ct3O0rmVk9llZJoWBCk6Ju45jcoTkMxXu50_Pmorbgn1lP1lyedoN-7EHY6nF9HQ5ROoHJozCxqahxcNlvil1Rcvui-TpHdKm38ugJtSzbwAot_d4R6ozCZxnAnfKR6ym0AxXJtripuWoImTmOjC4a3aEmyFBQu4lLP9tV4XGxlfYrnQZR3GzPVRVtRMc8cjuVKBFPTDhLPl7tPzXIDw-wr6thveRTYqm9-5XU4oHqGpIN9Mxa0atUdhvVN_QZlEtfNi7WYCLZWGLbrwgd8kA5Xx58t6MUtUvg5S2Z1jAKv67ZCL1-R_mMle1zzLk5xZxkC3rGLaksHrE-bjt7Ur7v8vrF2qCJT-_UT5NeuWYHo4uB8Zb99IjZFmmtFQGZt-zHNO3y8XpFXl4DhNqtOHdXoXbnmaNmAR4Wjmj46_XaPkseB63lXWbmtg_fXTnFvWGp8HtKWfd7JWtat6adZn_AHW3NoPwAwAA

Logs

[Log] update – ["Banana"] (1) (chunk-GHMOWVGZ.js, line 1619)
[Log] update – ["Orange"] (1) (chunk-GHMOWVGZ.js, line 1619)
[Log] update – ["Kiwi"] (1) (chunk-GHMOWVGZ.js, line 1619)

System Info

System:
    OS: macOS 14.3.1
    CPU: (8) arm64 Apple M2
    Memory: 146.28 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    npm: 10.3.0 - ~/.nvm/versions/node/v20.10.0/bin/npm
  Browsers:
    Chrome: 123.0.6312.87
    Safari: 17.3.1
  npmPackages:
    svelte: ^5.0.0-next.85 => 5.0.0-next.85

Severity

blocking an upgrade

@Rich-Harris Rich-Harris added this to the 5.0 milestone Apr 1, 2024
@dummdidumm
Copy link
Member

Closing as duplicate of #2308

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants