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

Array of refs are not working #1916

Closed
PaulMaly opened this issue Dec 25, 2018 · 0 comments
Closed

Array of refs are not working #1916

PaulMaly opened this issue Dec 25, 2018 · 0 comments
Labels
Milestone

Comments

@PaulMaly
Copy link
Contributor

Seems original RFC and #1877 propose that we gonna able to do this to collect multiple nodes as refs:

{#each items as item, i}
<a bind:this={elems[i]}>{item}</a>
{/each}

<script>
  let items = [...];
  let elems = [];
</script>

But for now new REPL throws an error "i is not defined": https://v3.svelte.technology/repl?version=3.0.0-alpha12&gist=9e81322e43470ab531eac9c1e79dfe22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants