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

@foo/#foo processing not done correctly in hoisted event handlers #699

Closed
Conduitry opened this issue Jul 8, 2017 · 0 comments · Fixed by #701
Closed

@foo/#foo processing not done correctly in hoisted event handlers #699

Conduitry opened this issue Jul 8, 2017 · 0 comments · Fixed by #701
Labels

Comments

@Conduitry
Copy link
Member

https://svelte.technology/repl?version=1.24.0&gist=05a1423a50952efb61eef851a79a3905

{{#each foo as bar}}<div on:click='baz(a)'></div>{{/each}}

produces

function click_handler ( event ) {
    var component = this._svelte.component;
    var state = #component.get();
    component.baz(state.a);
}
@Rich-Harris Rich-Harris added the bug label Jul 8, 2017
Rich-Harris added a commit that referenced this issue Jul 8, 2017
alias #component in hoisted event handlers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants