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

error when <input bind:group> within {#if} block #8372

Closed
SourceR85 opened this issue Mar 10, 2023 · 1 comment · Fixed by #8373
Closed

error when <input bind:group> within {#if} block #8372

SourceR85 opened this issue Mar 10, 2023 · 1 comment · Fixed by #8373

Comments

@SourceR85
Copy link

SourceR85 commented Mar 10, 2023

Describe the bug

New bug in Svelte 3.56.0

If the conditional input is neither the first nor the last in bind:group, you get the error "input is not defined"

Reproduction

REPL with the bug: https://svelte.dev/repl/ebbd30668eca4814a2c5a336b6c6f9d5?version=3.56.0
Working REPL, using svelte 3.55.1: https://svelte.dev/repl/ebbd30668eca4814a2c5a336b6c6f9d5?version=3.55.1

Logs

Exception thrown in Browser:

ReferenceError: input is not defined

System Info

System:
  OS: Linux 6.1 Fedora Linux 37 (KDE Plasma)
  CPU: (16) x64 AMD Ryzen 7 6800HS Creator Edition
  Memory: 2.39 GB / 13.34 GB
  Container: Yes
  Shell: 5.9 - /usr/bin/zsh
Binaries:
  Node: 18.15.0 - /run/user/1004/fnm_multishells/41129_1678470345258/bin/node
  npm: 9.5.0 - /run/user/1004/fnm_multishells/41129_1678470345258/bin/npm
Browsers:
  Firefox: 110.0
npmPackages:
  svelte: 3.56.0 => 3.56.0

Primarily I'm working with Brave v1.49.120, but it's a flatpak installation.

Severity

blocking an upgrade

dummdidumm added a commit that referenced this issue Mar 14, 2023
Fixes #8372

---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
@Conduitry
Copy link
Member

This should be working in 3.57.0 - https://svelte.dev/repl/ebbd30668eca4814a2c5a336b6c6f9d5?version=3.57.0

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

Successfully merging a pull request may close this issue.

2 participants