-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Bindings don't receive context from let variables #3140
Comments
Pass context used in bindings down to slots
This issue was closed, but the example has the same error on the current version 3.16.7. Should I open a new issue? |
What issue are you seeing? The bindings in https://svelte.dev/repl/278fe8b586f443889632803dcff8bcca?version=3.16.7 seem to be working fine for me. |
You are correct. Sorry for the noize. I must have gotten my links mixed up. That example is not triggering an error. I just got myself very confused while reading the error message on my code. I thought it was referring to the <FancyList items={items} let:item>
<input type=text bind:value={item.x}>
<input type=text bind:value={item.y}>
</FancyList> Once I saw the difference I was able to use the trick ( |
Via this Stack Overflow question.
Using a
let
variable in a binding doesn't work — the binding function isn't passed the relevant context, it seems: https://svelte.dev/repl/278fe8b586f443889632803dcff8bcca?version=3.6.1The text was updated successfully, but these errors were encountered: