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

The classes directives did not work when used together with each block #1796

Closed
szmtcjm opened this issue Oct 24, 2018 · 1 comment
Closed

Comments

@szmtcjm
Copy link

szmtcjm commented Oct 24, 2018

The classes directives did not work when used together with each block.
For example:

{#each list as item}
<div class="item" class:active="active">in each{item}</div>
{/each}
<div class="item" class:active="active">out each</div>

<button on:click="toggle()">toggle</button>

The repl show the detail of bug.

Anyway, thank you for your excellent framework.

@Rich-Harris
Copy link
Member

Thanks — this is a duplicate of #1793, which will be fixed soon (#1797). I'll close this in favour of that issue

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

2 participants